From: Phillip J. Eby Date: Mon, 10 Jul 2006 19:18:35 +0000 (+0000) Subject: Fix SF#1457312: bad socket error handling in distutils "upload" command. X-Git-Tag: v2.5b2~6 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=137ff79329ceefa9f7318c3bb97277627866c2ac;p=python Fix SF#1457312: bad socket error handling in distutils "upload" command. --- diff --git a/Lib/distutils/command/upload.py b/Lib/distutils/command/upload.py index 4a9ed398a0..67ba080427 100644 --- a/Lib/distutils/command/upload.py +++ b/Lib/distutils/command/upload.py @@ -185,7 +185,7 @@ class upload(Command): http.endheaders() http.send(body) except socket.error, e: - self.announce(e.msg, log.ERROR) + self.announce(str(e), log.ERROR) return r = http.getresponse()