From f1c940f13389f23e1d7ddba6bc70c3ad379d2840 Mon Sep 17 00:00:00 2001 From: Christopher Grebs Date: Thu, 10 Jul 2008 11:52:17 +0200 Subject: [PATCH] fixed attribute lookup error with old style classes --HG-- branch : trunk --- jinja2/environment.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 @@ 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): -- 2.26.2