Permalink
Browse files

Fixed a bug in jinja2/debug (second time, forgot to merge and threw a…

…way changes -.-)

--HG--
branch : trunk
  • Loading branch information...
1 parent f93a0ef commit 94ee6aa9788fa4577566efd4313bf84cdb2e48d8 @mitsuhiko mitsuhiko committed Apr 17, 2009
Showing with 6 additions and 1 deletion.
  1. +6 −1 jinja2/debug.py
View
@@ -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

0 comments on commit 94ee6aa

Please sign in to comment.