summaryrefslogtreecommitdiff
path: root/src/paste/deploy/util.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/paste/deploy/util.py')
-rw-r--r--src/paste/deploy/util.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/paste/deploy/util.py b/src/paste/deploy/util.py
index d30466a..6bd6132 100644
--- a/src/paste/deploy/util.py
+++ b/src/paste/deploy/util.py
@@ -20,9 +20,11 @@ def fix_type_error(exc_info, callable, varargs, kwargs):
"""
if exc_info is None:
exc_info = sys.exc_info()
- if (exc_info[0] != TypeError
+ if (
+ exc_info[0] != TypeError
or str(exc_info[1]).find('arguments') == -1
- or getattr(exc_info[1], '_type_error_fixed', False)):
+ or getattr(exc_info[1], '_type_error_fixed', False)
+ ):
return exc_info
exc_info[1]._type_error_fixed = True
argspec = inspect.formatargspec(*inspect.getargspec(callable))