summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--django/core/template/__init__.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/django/core/template/__init__.py b/django/core/template/__init__.py
index c399c93c14..ed502c5a17 100644
--- a/django/core/template/__init__.py
+++ b/django/core/template/__init__.py
@@ -665,6 +665,8 @@ def resolve_variable(path, context):
except SilentVariableFailure:
current = ''
except TypeError: # arguments *were* required
+ # GOTCHA: This will also catch any TypeError
+ # raised in the function itself.
current = '' # invalid method call
except (TypeError, AttributeError):
try: # list-index lookup