From bddd8f1e7b89ab03452c4ae4c830f3b34ab4bf75 Mon Sep 17 00:00:00 2001 From: Daniel Morrison Date: Sat, 15 Nov 2014 23:10:28 -0500 Subject: [PATCH] Fixed end of file errors. --- entei.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/entei.py b/entei.py index 72a402f..6da899d 100755 --- a/entei.py +++ b/entei.py @@ -56,7 +56,10 @@ def tokenize(template): l_del = '{{' r_del = '}}' while template: - literal, template = template.split(l_del, 1) + try: + literal, template = template.split(l_del, 1) + except ValueError: + literal, template = (template, '') # If the template is completed if not template: -- 2.47.3