Opened 18 years ago
Closed 18 years ago
#4176 closed (fixed)
DebugLexer breaks token source (breaking django exceptions)
Reported by: | Chris Beaven | Owned by: | Adrian Holovaty |
---|---|---|---|
Component: | Template system | Version: | dev |
Severity: | Keywords: | ||
Cc: | Triage Stage: | Ready for checkin | |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
django.views.debug.get_template_exception_info
expects the token source to be (origin, (start, end))
:
origin, (start, end) = exc_value.source
Malcolm's recent change in [5104] changed this to just (start, end)
which is breaking Django's pretty exception view.
Patch attached.
Attachments (1)
Change History (3)
by , 18 years ago
Attachment: | broken_token_source.patch added |
---|
comment:1 by , 18 years ago
Triage Stage: | Unreviewed → Ready for checkin |
---|
comment:2 by , 18 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
This is a rather urgent patch. The committer should be very careful to check my code, but I'm pretty sure my logic is sound.