summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdrian Holovaty <adrian@holovaty.com>2005-11-29 05:53:05 +0000
committerAdrian Holovaty <adrian@holovaty.com>2005-11-29 05:53:05 +0000
commit29d1598cce7f3b2abd8b2de1df0f9160523d693b (patch)
tree16f91953fc50170ce77c9b6936e54376a9697c1b
parent5a54455ac8585920b4ded4b7191c6496e46fc2d7 (diff)
Added a GOTCHA comment in django/core/template/init.py
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1488 bcc190cf-cafb-0310-a4f2-bffc1f526a37
-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