commit | f1c940f13389f23e1d7ddba6bc70c3ad379d2840 | [log] [tgz] |
---|---|---|
author | Christopher Grebs <entequak@googlemail.com> | Thu Jul 10 11:52:17 2008 +0200 |
committer | Christopher Grebs <entequak@googlemail.com> | Thu Jul 10 11:52:17 2008 +0200 |
tree | 0f83db0f2c03fff6a9c5e9982e8b90982d132160 | |
parent | e3290ea9f3c2579a819c9c4016beb50f20a41cad [diff] |
fixed attribute lookup error with old style classes --HG-- branch : trunk
diff --git a/jinja2/environment.py b/jinja2/environment.py index 689bc92..cf95060 100644 --- a/jinja2/environment.py +++ b/jinja2/environment.py
@@ -313,7 +313,7 @@ pass try: return obj[attribute] - except (TypeError, LookupError): + except (TypeError, LookupError, AttributeError): return self.undefined(obj=obj, name=attribute) def parse(self, source, name=None, filename=None):