mirror of
https://github.com/Hopiu/django.git
synced 2026-04-26 09:44:49 +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
1 changed files with 2 additions and 0 deletions
|
|
@ -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 a new issue