From: Daniel Morrison Date: Sun, 16 Nov 2014 04:10:28 +0000 (-0500) Subject: Fixed end of file errors. X-Git-Url: https://git.devinivas.org/?a=commitdiff_plain;h=bddd8f1e7b89ab03452c4ae4c830f3b34ab4bf75;p=chevron.git Fixed end of file errors. --- 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: