From: Armin Ronacher Date: Wed, 4 Apr 2007 18:56:51 +0000 (+0200) Subject: [svn] fixed jinja old-style class bug X-Git-Tag: 2.0rc1~374 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=1f57be8842ec281317ee74cca8f5573d5dfa03a0;p=jinja2.git [svn] fixed jinja old-style class bug --HG-- branch : trunk --- diff --git a/jinja/environment.py b/jinja/environment.py index ab268da..600328f 100644 --- a/jinja/environment.py +++ b/jinja/environment.py @@ -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):