summaryrefslogtreecommitdiff
path: root/paste/exceptions
diff options
context:
space:
mode:
authorianb <devnull@localhost>2006-02-14 17:14:13 +0000
committerianb <devnull@localhost>2006-02-14 17:14:13 +0000
commit367163049e1b40fe431282d2647d5b5a8042bc91 (patch)
tree91c5e8abee043a27d0a63c7d1f2bbd6991a5e824 /paste/exceptions
parent130b96836e1acb7f74c84c6f670d337a394131bd (diff)
downloadpaste-367163049e1b40fe431282d2647d5b5a8042bc91.tar.gz
Hopefully handle string exceptions (at least handle a little better)
Diffstat (limited to 'paste/exceptions')
-rw-r--r--paste/exceptions/errormiddleware.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/paste/exceptions/errormiddleware.py b/paste/exceptions/errormiddleware.py
index 3125f1d..217f935 100644
--- a/paste/exceptions/errormiddleware.py
+++ b/paste/exceptions/errormiddleware.py
@@ -144,7 +144,7 @@ class ErrorMiddleware(object):
# Only delegate expected exceptions if the response
# has not been started.
for expect in environ.get('paste.expected_exceptions', []):
- if issubclass(exc_info[0], expect):
+ if isinstance(exc_info[1], expect):
raise
start_response('500 Internal Server Error',
[('content-type', 'text/html')],