Django

Code

Changeset 3127

Show
Ignore:
Timestamp:
06/14/06 06:44:56 (2 years ago)
Author:
mtredinnick
Message:

Fixed #2153 -- display debugging template even if no stack frame is found.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/trunk/django/views/debug.py

    r2864 r3127  
    112112        tb = tb.tb_next 
    113113 
     114    if not frames: 
     115        frames = [{ 
     116            'filename': '<unknown>', 
     117            'function': '?', 
     118            'lineno': '?', 
     119        }] 
    114120    t = Template(TECHNICAL_500_TEMPLATE) 
    115121    c = Context({