Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 25a29a9

Browse files
committed
One further change.
1 parent 54a40cb commit 25a29a9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Lib/xmlrpclib.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ def _stringify(string):
167167
# convert to 7-bit ascii if possible
168168
try:
169169
return string.decode("ascii")
170-
except UnicodeError:
170+
except (UnicodeError, TypeError):
171171
return string
172172

173173
__version__ = "1.0.1"

0 commit comments

Comments
 (0)