Skip to content

Commit

Permalink
Fixed #2645 -- Fixed format-string error in exception call in templat…
Browse files Browse the repository at this point in the history
…e/__init__.py. Thanks for the patch, md@hudora.de

git-svn-id: http://code.djangoproject.com/svn/django/trunk@3720 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information
adrianholovaty committed Sep 5, 2006
1 parent 8e52384 commit cba5557
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion django/template/__init__.py
Expand Up @@ -435,7 +435,7 @@ def value(self):
while i < len(subject) and subject[i] != subject[p]: while i < len(subject) and subject[i] != subject[p]:
i += 1 i += 1
if i >= len(subject): if i >= len(subject):
raise TemplateSyntaxError, "Searching for value. Unexpected end of string in column %d: %s" % subject raise TemplateSyntaxError, "Searching for value. Unexpected end of string in column %d: %s" % (i, subject)
i += 1 i += 1
res = subject[p:i] res = subject[p:i]
while i < len(subject) and subject[i] in (' ', '\t'): while i < len(subject) and subject[i] in (' ', '\t'):
Expand Down

0 comments on commit cba5557

Please sign in to comment.