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
This commit is contained in:
Adrian Holovaty 2005-11-29 05:53:05 +00:00
parent 5a54455ac8
commit 29d1598cce
1 changed files with 2 additions and 0 deletions

View File

@ -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