indentation in middleware.py standardized to 4 spaces
This commit is contained in:
parent
5c99a88970
commit
42645a5f27
1 changed files with 5 additions and 5 deletions
|
@ -5,9 +5,9 @@ from shortcuts import Http404Json, render_to_json_response
|
|||
|
||||
class ExceptionMiddleware(object):
|
||||
|
||||
def process_exception(self, request, exception):
|
||||
if isinstance(exception, Http404Json):
|
||||
return render_to_json_response(exception.response)
|
||||
else:
|
||||
return None
|
||||
def process_exception(self, request, exception):
|
||||
if isinstance(exception, Http404Json):
|
||||
return render_to_json_response(exception.response)
|
||||
else:
|
||||
return None
|
||||
|
||||
|
|
Loading…
Reference in a new issue