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:
Adrian Holovaty 2005-11-04 14:48:57 +00:00
parent 5cf8f68423
commit d35d1f1581
1 changed files with 1 additions and 1 deletions

View File

@ -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: