1
0
mirror of https://github.com/django/django.git synced 2025-05-02 13:14:38 +00:00

Corrected a pair of flake8 violations

This commit is contained in:
Alex Gaynor 2014-02-15 10:42:12 -08:00
parent 1c1dffca75
commit cd7f37b647
2 changed files with 1 additions and 2 deletions

View File

@ -72,7 +72,6 @@ class Resolver404(Http404):
pass pass
class NoReverseMatch(Exception): class NoReverseMatch(Exception):
pass pass

View File

@ -477,7 +477,7 @@ def technical_404_response(request, exception):
try: try:
error_url = exception.args[0]['path'] error_url = exception.args[0]['path']
except (IndexError, TypeError, KeyError): except (IndexError, TypeError, KeyError):
error_url = request.path_info[1:] # Trim leading slash error_url = request.path_info[1:] # Trim leading slash
try: try:
tried = exception.args[0]['tried'] tried = exception.args[0]['tried']