From d35d1f15814c2cf520e2c71a7f483673d0b422a5 Mon Sep 17 00:00:00 2001 From: Adrian Holovaty Date: Fri, 4 Nov 2005 14:48:57 +0000 Subject: [PATCH] Fixed bug in django.utils.decorators.decorator_from_middleware -- it wasn't raising exceptions. Refs #641 git-svn-id: http://code.djangoproject.com/svn/django/trunk@1076 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- django/utils/decorators.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/django/utils/decorators.py b/django/utils/decorators.py index 074532e741f..3ec5b4cbbf1 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: