summaryrefslogtreecommitdiff
path: root/paste/deploy/util.py
diff options
context:
space:
mode:
Diffstat (limited to 'paste/deploy/util.py')
-rw-r--r--paste/deploy/util.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/paste/deploy/util.py b/paste/deploy/util.py
index 41f8dbd..c5056b2 100644
--- a/paste/deploy/util.py
+++ b/paste/deploy/util.py
@@ -3,6 +3,8 @@
import inspect
import sys
+from paste.deploy.compat import reraise
+
def fix_type_error(exc_info, callable, varargs, kwargs):
"""
@@ -54,5 +56,5 @@ def fix_call(callable, *args, **kw):
val = callable(*args, **kw)
except TypeError:
exc_info = fix_type_error(None, callable, args, kw)
- raise exc_info[0], exc_info[1], exc_info[2]
+ reraise(*exc_info)
return val