diff options
author | pjenvey <devnull@localhost> | 2006-06-09 05:32:46 +0000 |
---|---|---|
committer | pjenvey <devnull@localhost> | 2006-06-09 05:32:46 +0000 |
commit | 7da15f909d183b34c483448d48af9c4efcedd20e (patch) | |
tree | b95e3b69148cc13e74932a1cea23fbcc31b7eb96 /paste/evalexception | |
parent | 3b9e5e113f5c5dfa093f33fb215aa03dcd14f33a (diff) | |
download | paste-7da15f909d183b34c483448d48af9c4efcedd20e.tar.gz |
cleanly handling potential string exceptions
resolves: #56
Diffstat (limited to 'paste/evalexception')
-rw-r--r-- | paste/evalexception/middleware.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/paste/evalexception/middleware.py b/paste/evalexception/middleware.py index 2b36c12..3647552 100644 --- a/paste/evalexception/middleware.py +++ b/paste/evalexception/middleware.py @@ -294,7 +294,7 @@ class EvalException(object): except: exc_info = sys.exc_info() for expected in environ.get('paste.expected_exceptions', []): - if issubclass(exc_info[0], expected): + if isinstance(exc_info[1], expected): raise count = debug_counter.next() |