summaryrefslogtreecommitdiff
path: root/django
diff options
context:
space:
mode:
authorJulien Phalip <jphalip@gmail.com>2013-02-14 23:29:15 -0800
committerJulien Phalip <jphalip@gmail.com>2013-02-14 23:29:15 -0800
commit7d5e35cdb46124e2471833b9570add1a00a1d9e0 (patch)
tree621ee04faadacfd0496eba9a80ea7d1bc9976980 /django
parentf5e4a699ca0f58818acbdf9081164060cee910fa (diff)
Fixed #19829 -- Fixed index lookups for NumPy arrays in templates.
Diffstat (limited to 'django')
-rw-r--r--django/template/base.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/django/template/base.py b/django/template/base.py
index 9577d586d8..f43194de4a 100644
--- a/django/template/base.py
+++ b/django/template/base.py
@@ -763,7 +763,7 @@ class Variable(object):
for bit in self.lookups:
try: # dictionary lookup
current = current[bit]
- except (TypeError, AttributeError, KeyError):
+ except (TypeError, AttributeError, KeyError, ValueError):
try: # attribute lookup
current = getattr(current, bit)
except (TypeError, AttributeError):