Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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
  • Loading branch information...
commit 29d1598cce7f3b2abd8b2de1df0f9160523d693b 1 parent 5a54455
@adrianholovaty adrianholovaty authored
Showing with 2 additions and 0 deletions.
  1. +2 −0  django/core/template/__init__.py
View
2  django/core/template/__init__.py
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.