mirror of
				https://github.com/django/django.git
				synced 2025-10-31 01:25:32 +00:00 
			
		
		
		
	Corrected a pair of flake8 violations
This commit is contained in:
		| @@ -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'] | ||||
|   | ||||
		Reference in New Issue
	
	Block a user