From: Christopher Grebs Date: Thu, 10 Jul 2008 09:52:17 +0000 (+0200) Subject: fixed attribute lookup error with old style classes X-Git-Tag: 2.0~5^2^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f1c940f13389f23e1d7ddba6bc70c3ad379d2840;p=thirdparty%2Fjinja.git fixed attribute lookup error with old style classes --HG-- branch : trunk --- diff --git a/jinja2/environment.py b/jinja2/environment.py index 689bc92f..cf95060d 100644 --- a/jinja2/environment.py +++ b/jinja2/environment.py @@ -313,7 +313,7 @@ class Environment(object): 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):