Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed #2153 -- display debugging template even if no stack frame is f…

…ound.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@3127 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit d5377fc813a69d6f5ff9ec4ad198a973e8b4541b 1 parent ed1dcbf
Malcolm Tredinnick authored June 14, 2006

Showing 1 changed file with 6 additions and 0 deletions. Show diff stats Hide diff stats

  1. 6  django/views/debug.py
6  django/views/debug.py
@@ -111,6 +111,12 @@ def technical_500_response(request, exc_type, exc_value, tb):
111 111
             })
112 112
         tb = tb.tb_next
113 113
 
  114
+    if not frames:
  115
+        frames = [{
  116
+            'filename': '<unknown>',
  117
+            'function': '?',
  118
+            'lineno': '?',
  119
+        }]
114 120
     t = Template(TECHNICAL_500_TEMPLATE)
115 121
     c = Context({
116 122
         'exception_type': exc_type.__name__,

0 notes on commit d5377fc

Please sign in to comment.
Something went wrong with that request. Please try again.