From: Armin Ronacher Date: Fri, 17 Apr 2009 09:21:00 +0000 (+0200) Subject: Fixed a bug in jinja2/debug (second time, forgot to merge and threw away changes... X-Git-Tag: 2.2~21 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=94ee6aa9788fa4577566efd4313bf84cdb2e48d8;p=thirdparty%2Fjinja.git Fixed a bug in jinja2/debug (second time, forgot to merge and threw away changes -.-) --HG-- branch : trunk --- diff --git a/jinja2/debug.py b/jinja2/debug.py index b6a64e36..aa78ef0f 100644 --- a/jinja2/debug.py +++ b/jinja2/debug.py @@ -184,7 +184,12 @@ def fake_exc_info(exc_info, filename, lineno): globals = { '__name__': filename, '__file__': filename, - '__jinja_exception__': exc_info[:2] + '__jinja_exception__': exc_info[:2], + + # we don't want to keep the reference to the template around + # to not cause circular dependencies, but we mark it as Jinja + # frame for the ProcessedTraceback + '__jinja_template__': None } # and fake the exception