Index: django/views/debug.py =================================================================== --- django/views/debug.py (revision 3117) +++ django/views/debug.py (working copy) @@ -112,6 +112,14 @@ tb = tb.tb_next t = Template(TECHNICAL_500_TEMPLATE) + + if not len(frames): + frames = [{ + 'filename': '<unknown>', + 'function': '<unknown>', + 'lineno': '??', + }] + c = Context({ 'exception_type': exc_type.__name__, 'exception_value': exc_value,