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:
parent
5a54455ac8
commit
29d1598cce
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user