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
This commit is contained in:
parent
5cf8f68423
commit
d35d1f1581
|
@ -23,7 +23,7 @@ def decorator_from_middleware(middleware_class):
|
||||||
result = middleware.process_exception(request, e)
|
result = middleware.process_exception(request, e)
|
||||||
if result is not None:
|
if result is not None:
|
||||||
return result
|
return result
|
||||||
raise e
|
raise
|
||||||
if hasattr(middleware, 'process_response'):
|
if hasattr(middleware, 'process_response'):
|
||||||
result = middleware.process_response(request, response)
|
result = middleware.process_response(request, response)
|
||||||
if result is not None:
|
if result is not None:
|
||||||
|
|
Loading…
Reference in New Issue