summaryrefslogtreecommitdiff
path: root/jinja2/debug.py
diff options
context:
space:
mode:
authorArmin Ronacher <armin.ronacher@active-4.com>2009-02-04 19:13:58 +0100
committerArmin Ronacher <armin.ronacher@active-4.com>2009-02-04 19:13:58 +0100
commit330fbc0ad21fe988a7970c2f04df3a411bbeb4bd (patch)
treefcd9b00adec261c111a3e575a591731ab5b84b0f /jinja2/debug.py
parentbec76c789fa89e3ea86e3998ff3d4941df26edd1 (diff)
downloadjinja2-330fbc0ad21fe988a7970c2f04df3a411bbeb4bd.tar.gz
Fixed a bug that caused syntax errors when defining macros or using the
`{% call %}` tag inside loops. This fixes #323. --HG-- branch : trunk
Diffstat (limited to 'jinja2/debug.py')
-rw-r--r--jinja2/debug.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/jinja2/debug.py b/jinja2/debug.py
index 38fa012..bfd00f1 100644
--- a/jinja2/debug.py
+++ b/jinja2/debug.py
@@ -11,7 +11,7 @@
:license: BSD.
"""
import sys
-from jinja2.utils import CodeType
+from jinja2.utils import CodeType, missing
def translate_exception(exc_info):
@@ -47,7 +47,7 @@ def fake_exc_info(exc_info, filename, lineno, tb_back=None):
else:
locals = {}
for name, value in real_locals.iteritems():
- if name.startswith('l_'):
+ if name.startswith('l_') and value is not missing:
locals[name[2:]] = value
# if there is a local called __jinja_exception__, we get