diff options
| author | Mads Jensen <mje@inducks.org> | 2017-01-25 15:14:05 +0100 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2017-01-25 09:14:05 -0500 |
| commit | ebf34c3cdcd2c75349c60a064427ac255958bf9b (patch) | |
| tree | 7d6289bf88b5c9dc8ccb5b7c245d6cc46c005dd0 /django/template | |
| parent | 5890d6ab03ebc7dac46ce7d9540b5768785caa34 (diff) | |
Removed unused variables that are overwritten.
Diffstat (limited to 'django/template')
| -rw-r--r-- | django/template/base.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/django/template/base.py b/django/template/base.py index b4d129c0a4..0c796ceaf2 100644 --- a/django/template/base.py +++ b/django/template/base.py @@ -853,7 +853,7 @@ class Variable: if isinstance(current, BaseContext) and getattr(type(current), bit): raise AttributeError current = getattr(current, bit) - except (TypeError, AttributeError) as e: + except (TypeError, AttributeError): # Reraise if the exception was raised by a @property if not isinstance(current, BaseContext) and bit in dir(current): raise |
