mirror of
https://github.com/python/cpython.git
synced 2025-10-09 16:34:44 +00:00
Improve subprocess link error notification
M NEWS.txt M PyShell.py M rpc.py
This commit is contained in:
parent
77d08bcfc2
commit
935ea9a0b2
3 changed files with 9 additions and 3 deletions
|
@ -330,9 +330,10 @@ class SocketIO(object):
|
|||
try:
|
||||
r, w, x = select.select([], [self.sock], [])
|
||||
n = self.sock.send(s[:BUFSIZE])
|
||||
except (AttributeError, socket.error):
|
||||
# socket was closed
|
||||
raise IOError
|
||||
except (AttributeError, TypeError):
|
||||
raise IOError, "socket no longer exists"
|
||||
except socket.error:
|
||||
raise
|
||||
else:
|
||||
s = s[n:]
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue