diff options
| author | Malcolm Tredinnick <malcolm.tredinnick@gmail.com> | 2006-06-14 11:44:56 +0000 |
|---|---|---|
| committer | Malcolm Tredinnick <malcolm.tredinnick@gmail.com> | 2006-06-14 11:44:56 +0000 |
| commit | d5377fc813a69d6f5ff9ec4ad198a973e8b4541b (patch) | |
| tree | 399a439bef256501f26b04075c2ece7d5e8e8dbb /django/views/debug.py | |
| parent | ed1dcbf3e7313ea4bb779210f09cf3e4c7e7956f (diff) | |
Fixed #2153 -- display debugging template even if no stack frame is found.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3127 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'django/views/debug.py')
| -rw-r--r-- | django/views/debug.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/django/views/debug.py b/django/views/debug.py index 16cf937d80..6cbbde987b 100644 --- a/django/views/debug.py +++ b/django/views/debug.py @@ -111,6 +111,12 @@ def technical_500_response(request, exc_type, exc_value, tb): }) tb = tb.tb_next + if not frames: + frames = [{ + 'filename': '<unknown>', + 'function': '?', + 'lineno': '?', + }] t = Template(TECHNICAL_500_TEMPLATE) c = Context({ 'exception_type': exc_type.__name__, |
