[svn] fixed jinja old-style class bug
authorArmin Ronacher <armin.ronacher@active-4.com>
Wed, 4 Apr 2007 18:56:51 +0000 (20:56 +0200)
committerArmin Ronacher <armin.ronacher@active-4.com>
Wed, 4 Apr 2007 18:56:51 +0000 (20:56 +0200)
--HG--
branch : trunk

jinja/environment.py

index ab268da1b496ca6b0b66a6ffffb63b3f4ce17e46..600328f4cbcd3c9ae305bcb605143fa6204c3457 100644 (file)
@@ -181,7 +181,7 @@ class Environment(object):
         """
         try:
             return obj[name]
-        except (TypeError, KeyError, IndexError):
+        except (TypeError, KeyError, IndexError, AttributeError):
             try:
                 return get_attribute(obj, name)
             except (AttributeError, SecurityException):