summaryrefslogtreecommitdiff
path: root/wsgitools/scgi
diff options
context:
space:
mode:
Diffstat (limited to 'wsgitools/scgi')
-rw-r--r--wsgitools/scgi/asynchronous.py2
-rw-r--r--wsgitools/scgi/forkpool.py2
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]