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
This commit is contained in:
parent
ed1dcbf3e7
commit
d5377fc813
|
@ -111,6 +111,12 @@ def technical_500_response(request, exc_type, exc_value, tb):
|
||||||
})
|
})
|
||||||
tb = tb.tb_next
|
tb = tb.tb_next
|
||||||
|
|
||||||
|
if not frames:
|
||||||
|
frames = [{
|
||||||
|
'filename': '<unknown>',
|
||||||
|
'function': '?',
|
||||||
|
'lineno': '?',
|
||||||
|
}]
|
||||||
t = Template(TECHNICAL_500_TEMPLATE)
|
t = Template(TECHNICAL_500_TEMPLATE)
|
||||||
c = Context({
|
c = Context({
|
||||||
'exception_type': exc_type.__name__,
|
'exception_type': exc_type.__name__,
|
||||||
|
|
Loading…
Reference in New Issue