From cd7f37b6471dc947f06a40149e6c9789531e50a0 Mon Sep 17 00:00:00 2001 From: Alex Gaynor Date: Sat, 15 Feb 2014 10:42:12 -0800 Subject: [PATCH] Corrected a pair of flake8 violations --- django/core/urlresolvers.py | 1 - django/views/debug.py | 2 +- 2 files changed, 1 insertion(+), 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']