diff options
author | ianb <devnull@localhost> | 2006-02-14 17:14:13 +0000 |
---|---|---|
committer | ianb <devnull@localhost> | 2006-02-14 17:14:13 +0000 |
commit | 367163049e1b40fe431282d2647d5b5a8042bc91 (patch) | |
tree | 91c5e8abee043a27d0a63c7d1f2bbd6991a5e824 /paste/exceptions | |
parent | 130b96836e1acb7f74c84c6f670d337a394131bd (diff) | |
download | paste-367163049e1b40fe431282d2647d5b5a8042bc91.tar.gz |
Hopefully handle string exceptions (at least handle a little better)
Diffstat (limited to 'paste/exceptions')
-rw-r--r-- | paste/exceptions/errormiddleware.py | 2 |
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')], |