From d5377fc813a69d6f5ff9ec4ad198a973e8b4541b Mon Sep 17 00:00:00 2001 From: Malcolm Tredinnick Date: Wed, 14 Jun 2006 11:44:56 +0000 Subject: [PATCH] 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 --- django/views/debug.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/django/views/debug.py b/django/views/debug.py index 16cf937d807..6cbbde987b9 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__,