Permalink
Browse files

Fixed #2645 -- Fixed format-string error in exception call in templat…

…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...
1 parent 8e52384 commit cba5557c7a547d7e0f947b91610223643e85c572 @adrianholovaty adrianholovaty committed Sep 5, 2006
Showing with 1 addition and 1 deletion.
  1. +1 −1 django/template/__init__.py
@@ -435,7 +435,7 @@ def value(self):
while i < len(subject) and subject[i] != subject[p]:
i += 1
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
res = subject[p:i]
while i < len(subject) and subject[i] in (' ', '\t'):

0 comments on commit cba5557

Please sign in to comment.