Ticket #2153: debug_patch

File debug_patch, 557 bytes (added by anonymous, 19 years ago)

[patch] remove possible rendering failure in debug.py

Line 
1Index: django/views/debug.py
2===================================================================
3--- django/views/debug.py (revision 3117)
4+++ django/views/debug.py (working copy)
5@@ -112,6 +112,14 @@
6 tb = tb.tb_next
7
8 t = Template(TECHNICAL_500_TEMPLATE)
9+
10+ if not len(frames):
11+ frames = [{
12+ 'filename': '<unknown>',
13+ 'function': '<unknown>',
14+ 'lineno': '??',
15+ }]
16+
17 c = Context({
18 'exception_type': exc_type.__name__,
19 'exception_value': exc_value,
Back to Top