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']