| commit | 93d2df782dd7e9c50799b0ddb20a8d80defdff86 | [log] [tgz] |
|---|---|---|
| author | Georg Brandl <georg@python.org> | Sun May 23 22:35:53 2010 +0200 |
| committer | Georg Brandl <georg@python.org> | Sun May 23 22:35:53 2010 +0200 |
| tree | f9cd1ebd89ee683089031ee75cfd93a9bf2e00d2 | |
| parent | 802f4720cd854c22f300b883d52967a8ccf2a2cb [diff] [blame] |
Fix unbound local error masked by bare except. --HG-- branch : trunk
diff --git a/jinja2/nodes.py b/jinja2/nodes.py index b6696c7..c8bb047 100644 --- a/jinja2/nodes.py +++ b/jinja2/nodes.py
@@ -638,7 +638,8 @@ raise Impossible() try: eval_ctx = get_eval_context(self, eval_ctx) - return self.environment.getattr(self.node.as_const(eval_ctx), arg) + return self.environment.getattr(self.node.as_const(eval_ctx), + self.attr) except: raise Impossible()