Kaydet (Commit) cd7f37b6 authored tarafından Alex Gaynor's avatar Alex Gaynor

Corrected a pair of flake8 violations

üst 1c1dffca
......@@ -72,7 +72,6 @@ class Resolver404(Http404):
pass
class NoReverseMatch(Exception):
pass
......
......@@ -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']
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment