Skip to content
Myr

Fix unbound local error masked by bare except.

Before adoption: this commit came in with the history the project adopted, so no landing records it.

--HG-- branch : trunk

authored by Georg Brandl · committed by Georg Brandl · parent 802f472 · Browse files · 1 file+2 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+2 added−1 removed

  • other:+2 added−1 removed

1 file+2 added−1 removed

modified:jinja2/nodes.py+2 added-1 removed
636 unmodified lines
637 if self.ctx != 'load':638 raise Impossible()639 try:640 eval_ctx = get_eval_context(self, eval_ctx)641 return self.environment.getattr(self.node.as_const(eval_ctx), arg)641 return self.environment.getattr(self.node.as_const(eval_ctx),642 self.attr)643 except:644 raise Impossible()645646 def can_assign(self):
229 unmodified lines