summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdrian Holovaty <adrian@holovaty.com>2005-11-04 14:48:57 +0000
committerAdrian Holovaty <adrian@holovaty.com>2005-11-04 14:48:57 +0000
commitd35d1f15814c2cf520e2c71a7f483673d0b422a5 (patch)
tree9c9009165c0aa8d0e73b4f04ebc4d6a2f0b8476e
parent5cf8f684237ab5addaf3549b2347c3adf107c0a7 (diff)
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
-rw-r--r--django/utils/decorators.py2
1 files changed, 1 insertions, 1 deletions
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: