Opened 18 years ago

Closed 18 years ago

Last modified 18 years ago

#2645 closed defect (fixed)

[patch] template error handler has an error

Reported by: md@… Owned by: Adrian Holovaty
Component: Template system Version: dev
Severity: normal Keywords:
Cc: md@… Triage Stage: Unreviewed
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

django/template/init.py (revision 3709) arroundline 439 has a little typo resulting in broken error handling. This is the fix:

-                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)

You can get a real diff at http://c0re.23.nu/c0de/misc/django-3709-template-error-error.diff

Regards

Maximillian Dornseif

Change History (1)

comment:1 by Adrian Holovaty, 18 years ago

Resolution: fixed
Status: newclosed

(In [3720]) Fixed #2645 -- Fixed format-string error in exception call in template/init.py. Thanks for the patch, md@…

Note: See TracTickets for help on using tickets.
Back to Top