Ticket #11461: template-fix-lost-traceback.diff

File template-fix-lost-traceback.diff, 563 bytes (added by Glenn Maynard, 15 years ago)
  • django/template/debug.py

     
    7878            wrapped = TemplateSyntaxError(u'Caught an exception while rendering: %s' % force_unicode(e, errors='replace'))
    7979            wrapped.source = node.source
    8080            wrapped.exc_info = exc_info()
    81             raise wrapped
     81            raise wrapped, None, wrapped.exc_info[2]
    8282        return result
    8383
    8484class DebugVariableNode(VariableNode):
Back to Top