1
0
mirror of https://github.com/django/django.git synced 2024-12-23 01:25:58 +00:00

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

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