summaryrefslogtreecommitdiff
path: root/jinja2/compiler.py
diff options
context:
space:
mode:
Diffstat (limited to 'jinja2/compiler.py')
-rw-r--r--jinja2/compiler.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/jinja2/compiler.py b/jinja2/compiler.py
index 2dd68cd..a6f26a5 100644
--- a/jinja2/compiler.py
+++ b/jinja2/compiler.py
@@ -278,6 +278,8 @@ class FrameIdentifierVisitor(NodeVisitor):
real_identifiers.declared_parameter
def inner_visit(nodes):
+ if not nodes:
+ return set()
self.identifiers = real_identifiers.copy()
for subnode in nodes:
self.visit(subnode)