From 1f57be8842ec281317ee74cca8f5573d5dfa03a0 Mon Sep 17 00:00:00 2001 From: Armin Ronacher Date: Wed, 4 Apr 2007 20:56:51 +0200 Subject: [PATCH] [svn] fixed jinja old-style class bug --HG-- branch : trunk --- jinja/environment.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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): -- 2.26.2