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:
parent
5a54455ac8
commit
29d1598cce
|
@ -665,6 +665,8 @@ def resolve_variable(path, context):
|
||||||
except SilentVariableFailure:
|
except SilentVariableFailure:
|
||||||
current = ''
|
current = ''
|
||||||
except TypeError: # arguments *were* required
|
except TypeError: # arguments *were* required
|
||||||
|
# GOTCHA: This will also catch any TypeError
|
||||||
|
# raised in the function itself.
|
||||||
current = '' # invalid method call
|
current = '' # invalid method call
|
||||||
except (TypeError, AttributeError):
|
except (TypeError, AttributeError):
|
||||||
try: # list-index lookup
|
try: # list-index lookup
|
||||||
|
|
Loading…
Reference in New Issue