]> Devi Nivas Git - chevron.git/commitdiff
Fixed end of file errors.
authorDaniel Morrison <dan@morrison.ph>
Sun, 16 Nov 2014 04:10:28 +0000 (23:10 -0500)
committerDaniel Morrison <dan@morrison.ph>
Sun, 16 Nov 2014 04:10:28 +0000 (23:10 -0500)
entei.py

index 72a402f841c41852cc13c2b09c9d71a2021c9cc5..6da899d3613c0d708cfcb08974d9bc5f1e2b469c 100755 (executable)
--- 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: