diff --git a/django/template/base.py b/django/template/base.py
index e2fc66b..f07ce86 100644
|
|
class Variable(object):
|
744 | 744 | detail and shouldn't be called by external code. Use Variable.resolve() |
745 | 745 | instead. |
746 | 746 | """ |
| 747 | from django.core.urlresolvers import NoReverseMatch |
747 | 748 | current = context |
748 | 749 | try: # catch-all for silent variable failures |
749 | 750 | for bit in self.lookups: |
… |
… |
class Variable(object):
|
774 | 775 | # GOTCHA: This will also catch any TypeError |
775 | 776 | # raised in the function itself. |
776 | 777 | current = settings.TEMPLATE_STRING_IF_INVALID # invalid method call |
| 778 | except NoReverseMatch, e: |
| 779 | raise e |
777 | 780 | except Exception, e: |
778 | 781 | if getattr(e, 'silent_variable_failure', False): |
779 | 782 | current = settings.TEMPLATE_STRING_IF_INVALID |