From 25a29a9534ea8bbfce297eb92c82741833fe04eb Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Mon, 27 Aug 2007 22:31:36 +0000 Subject: One further change. --- Lib/xmlrpclib.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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" -- cgit v0.12