diff --git a/django/utils/decorators.py b/django/utils/decorators.py index 074532e741..3ec5b4cbbf 100644 --- a/django/utils/decorators.py +++ b/django/utils/decorators.py @@ -23,7 +23,7 @@ def decorator_from_middleware(middleware_class): result = middleware.process_exception(request, e) if result is not None: return result - raise e + raise if hasattr(middleware, 'process_response'): result = middleware.process_response(request, response) if result is not None: