Commit 437e5b73 authored by Andrew Svetlov's avatar Andrew Svetlov

Issue #16717: get rid of socket.error, replace with OSError

parent ca8d1692
......@@ -186,7 +186,7 @@ class upload(PyPIRCCommand):
http.putheader('Authorization', auth)
http.endheaders()
http.send(body)
except socket.error as e:
except OSError as e:
self.announce(str(e), log.ERROR)
return
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment