diff options
author | Helmut Grohne <helmut@subdivi.de> | 2023-06-18 11:58:26 +0200 |
---|---|---|
committer | Helmut Grohne <helmut@subdivi.de> | 2023-06-18 11:58:26 +0200 |
commit | 253347e6177fa86bad32dd919f1768e5c2d6f96c (patch) | |
tree | c6cf9a0809a7e6c75bbc98ac360977264e08e406 /wsgitools/scgi | |
parent | 12a8de3ee42e5b94509649745e97e30f2f51fa51 (diff) | |
download | wsgitools-253347e6177fa86bad32dd919f1768e5c2d6f96c.tar.gz |
reraise py3 exceptions as advised in pep3333
Diffstat (limited to 'wsgitools/scgi')
-rw-r--r-- | wsgitools/scgi/asynchronous.py | 2 | ||||
-rw-r--r-- | wsgitools/scgi/forkpool.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/wsgitools/scgi/asynchronous.py b/wsgitools/scgi/asynchronous.py index 8c44ba2..5354ced 100644 --- a/wsgitools/scgi/asynchronous.py +++ b/wsgitools/scgi/asynchronous.py @@ -11,7 +11,7 @@ from wsgitools.scgi import _convert_environ, FileWrapper if sys.version_info[0] >= 3: def exc_info_for_raise(exc_info): - return exc_info[0](exc_info[1]).with_traceback(exc_info[2]) + return exc_info[1].with_traceback(exc_info[2]) else: def exc_info_for_raise(exc_info): return exc_info[0], exc_info[1], exc_info[2] diff --git a/wsgitools/scgi/forkpool.py b/wsgitools/scgi/forkpool.py index f3990cb..752f0e7 100644 --- a/wsgitools/scgi/forkpool.py +++ b/wsgitools/scgi/forkpool.py @@ -21,7 +21,7 @@ from wsgitools.scgi import _convert_environ, FileWrapper if sys.version_info[0] >= 3: def exc_info_for_raise(exc_info): - return exc_info[0](exc_info[1]).with_traceback(exc_info[2]) + return exc_info[1].with_traceback(exc_info[2]) else: def exc_info_for_raise(exc_info): return exc_info[0], exc_info[1], exc_info[2] |