Exception in views/debug.py
|Reported by:||Owned by:||Adrian Holovaty|
|Has patch:||no||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
There's an error in the
get_template_exception_info function that causes the interpreter to raise an
UnboundLocalError in the marginal case that the template being debugged has only one line. This is caused by the
after variables not being assigned. This can be fixed by inserting the line
before = during = after = ""
for loop (line 26, django/views/debug.py).
This bug is present in revision 1550.