From 94ee6aa9788fa4577566efd4313bf84cdb2e48d8 Mon Sep 17 00:00:00 2001 From: Armin Ronacher Date: Fri, 17 Apr 2009 11:21:00 +0200 Subject: [PATCH] Fixed a bug in jinja2/debug (second time, forgot to merge and threw away changes -.-) --HG-- branch : trunk --- jinja2/debug.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/jinja2/debug.py b/jinja2/debug.py index b6a64e3..aa78ef0 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 -- 2.26.2