Permalink
Browse files

fixed attribute lookup error with old style classes

--HG--
branch : trunk
  • Loading branch information...
1 parent e3290ea commit f1c940f13389f23e1d7ddba6bc70c3ad379d2840 Christopher Grebs committed Jul 10, 2008
Showing with 1 addition and 1 deletion.
  1. +1 −1 jinja2/environment.py
View
@@ -313,7 +313,7 @@ def getattr(self, obj, attribute):
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):

0 comments on commit f1c940f

Please sign in to comment.