Opened 15 years ago
Closed 15 years ago
#12939 closed (duplicate)
fix for ExceptionReporter.get_traceback_html()
Reported by: | skoom | Owned by: | nobody |
---|---|---|---|
Component: | Template system | Version: | dev |
Severity: | Keywords: | ||
Cc: | Triage Stage: | Unreviewed | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
ExceptionReporter.get_traceback_html() checks if the exception has a 'source' attribute before running get_template_exception_info().
It should check the type of exception is TemplateSyntaxError as it says it does in the documentation.
It only checks if the exception has a 'source' attribute. I use mako templates and their compiler exception has a source value (which is a string) and the ExceptionReporter fails pulling this value into 3 values as it tries to on line 137 of views/debug.py.
Some of my template issues just show up as an error in debug.py at line 137.
Change History (4)
comment:1 by , 15 years ago
Component: | Uncategorized → Template system |
---|---|
Version: | 1.1 → SVN |
comment:2 by , 15 years ago
milestone: | → 1.2 |
---|
comment:3 by , 15 years ago
milestone: | 1.2 |
---|
comment:4 by , 15 years ago
Resolution: | → duplicate |
---|---|
Status: | new → closed |
Duplicate of #10216