summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhillip J. Eby <pje@telecommunity.com>2006-07-10 19:18:35 +0000
committerPhillip J. Eby <pje@telecommunity.com>2006-07-10 19:18:35 +0000
commit137ff79329ceefa9f7318c3bb97277627866c2ac (patch)
tree7e8edfa4da92ffd3fd7706281c23b05433e16d64
parent5d86bdb3aebb14228d3c2e3f921bda34cf1c886c (diff)
downloadcpython-git-137ff79329ceefa9f7318c3bb97277627866c2ac.tar.gz
Fix SF#1457312: bad socket error handling in distutils "upload" command.
-rw-r--r--Lib/distutils/command/upload.py2
1 files changed, 1 insertions, 1 deletions
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()