From 29d1598cce7f3b2abd8b2de1df0f9160523d693b Mon Sep 17 00:00:00 2001 From: Adrian Holovaty Date: Tue, 29 Nov 2005 05:53:05 +0000 Subject: [PATCH] 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 --- django/core/template/__init__.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/django/core/template/__init__.py b/django/core/template/__init__.py index c399c93c14..ed502c5a17 100644 --- a/django/core/template/__init__.py +++ b/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