summaryrefslogtreecommitdiff
path: root/django
diff options
context:
space:
mode:
Diffstat (limited to 'django')
-rw-r--r--django/template/__init__.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/django/template/__init__.py b/django/template/__init__.py
index 5d238d427c..eee0808b5d 100644
--- a/django/template/__init__.py
+++ b/django/template/__init__.py
@@ -745,11 +745,11 @@ class Variable(object):
TypeError, # unsubscriptable object
):
raise VariableDoesNotExist("Failed lookup for key [%s] in %r", (bit, current)) # missing attribute
- except Exception, e:
- if getattr(e, 'silent_variable_failure', False):
- current = settings.TEMPLATE_STRING_IF_INVALID
- else:
- raise
+ except Exception, e:
+ if getattr(e, 'silent_variable_failure', False):
+ current = settings.TEMPLATE_STRING_IF_INVALID
+ else:
+ raise
return current