summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--paste/wsgilib.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/paste/wsgilib.py b/paste/wsgilib.py
index 7bb9904..8d9dc9d 100644
--- a/paste/wsgilib.py
+++ b/paste/wsgilib.py
@@ -527,7 +527,10 @@ def _warn_deprecated(new_func):
% (new_name, new_path),
DeprecationWarning, 2)
return new_func(*args, **kw)
- replacement.func_name = new_func.func_name
+ try:
+ replacement.func_name = new_func.func_name
+ except:
+ pass
return replacement
# Put warnings wrapper in place for all public functions that