Commits

pje committed f2ac31f

Fix SF#1457312: bad socket error handling in distutils "upload" command.

Comments (0)

Files changed (1)

Lib/distutils/command/upload.py

             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()