diff options
| author | Alex Gaynor <alex.gaynor@gmail.com> | 2014-02-15 10:42:12 -0800 |
|---|---|---|
| committer | Alex Gaynor <alex.gaynor@gmail.com> | 2014-02-15 10:42:12 -0800 |
| commit | cd7f37b6471dc947f06a40149e6c9789531e50a0 (patch) | |
| tree | 3df2919fab71d5e6987d1942f53ddbe8b813d05a | |
| parent | 1c1dffca757b0b6acaf99d893d68847250ab4146 (diff) | |
Corrected a pair of flake8 violations
| -rw-r--r-- | django/core/urlresolvers.py | 1 | ||||
| -rw-r--r-- | django/views/debug.py | 2 |
2 files changed, 1 insertions, 2 deletions
diff --git a/django/core/urlresolvers.py b/django/core/urlresolvers.py index b56bc962d1..1dca15b4aa 100644 --- a/django/core/urlresolvers.py +++ b/django/core/urlresolvers.py @@ -72,7 +72,6 @@ class Resolver404(Http404): pass - class NoReverseMatch(Exception): pass diff --git a/django/views/debug.py b/django/views/debug.py index 049e6e32c0..efb3079d7e 100644 --- a/django/views/debug.py +++ b/django/views/debug.py @@ -477,7 +477,7 @@ def technical_404_response(request, exception): try: error_url = exception.args[0]['path'] except (IndexError, TypeError, KeyError): - error_url = request.path_info[1:] # Trim leading slash + error_url = request.path_info[1:] # Trim leading slash try: tried = exception.args[0]['tried'] |
