summaryrefslogtreecommitdiffstats
path: root/Lib/xmlrpclib.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/xmlrpclib.py')
-rw-r--r--Lib/xmlrpclib.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/xmlrpclib.py b/Lib/xmlrpclib.py
index 586dc4c..ac36b62 100644
--- a/Lib/xmlrpclib.py
+++ b/Lib/xmlrpclib.py
@@ -167,7 +167,7 @@ def _stringify(string):
# convert to 7-bit ascii if possible
try:
return string.decode("ascii")
- except UnicodeError:
+ except (UnicodeError, TypeError):
return string
__version__ = "1.0.1"