diff --git a/oxdjango/middleware.py b/oxdjango/middleware.py index 66d6be9..83e6be3 100644 --- a/oxdjango/middleware.py +++ b/oxdjango/middleware.py @@ -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