]> granicus.if.org Git - python/commitdiff
Fix SF#1457312: bad socket error handling in distutils "upload" command.
authorPhillip J. Eby <pje@telecommunity.com>
Mon, 10 Jul 2006 19:18:35 +0000 (19:18 +0000)
committerPhillip J. Eby <pje@telecommunity.com>
Mon, 10 Jul 2006 19:18:35 +0000 (19:18 +0000)
Lib/distutils/command/upload.py

index 4a9ed398a01cf905ab9fee6a361f66cdeddc11f0..67ba080427ca301a47e62a00c1c47700d52af7c3 100644 (file)
@@ -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()