diff options
| author | Phillip J. Eby <pje@telecommunity.com> | 2006-07-10 19:18:35 +0000 |
|---|---|---|
| committer | Phillip J. Eby <pje@telecommunity.com> | 2006-07-10 19:18:35 +0000 |
| commit | ade0e1224c506fdc025bd2d9140680649e270d08 (patch) | |
| tree | e5c514e7a07aa43da318888d7db3d285750b108d | |
| parent | c1e1543bcb67863c5a26b1b4701d4f0edcb5f1c0 (diff) | |
| download | cpython-ade0e1224c506fdc025bd2d9140680649e270d08.tar.gz | |
Fix SF#1457312: bad socket error handling in distutils "upload" command.
| -rw-r--r-- | Lib/distutils/command/upload.py | 2 |
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() |
