Opened 9 years ago

Closed 9 years ago

Last modified 9 years ago

#2645 closed defect (fixed)

[patch] template error handler has an error

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

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 Changed 9 years ago by adrian

  • Resolution set to fixed
  • Status changed from new to closed

(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