mirror of https://github.com/python/cpython
Fix SF#1457312: bad socket error handling in distutils "upload" command.
This commit is contained in:
parent
5d86bdb3ae
commit
137ff79329
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue