summaryrefslogtreecommitdiffstats
path: root/Lib/idlelib/rpc.py
diff options
context:
space:
mode:
authorKurt B. Kaiser <kbk@shore.net>2005-05-10 03:44:24 (GMT)
committerKurt B. Kaiser <kbk@shore.net>2005-05-10 03:44:24 (GMT)
commit935ea9a0b291b2ce42a5cf02d9f2f2955e21a6aa (patch)
tree850442afa3fdd45244e48afd7b3d67ce12fe7d75 /Lib/idlelib/rpc.py
parent77d08bcfc212ed8faa2649f8f80f70beda50bd0a (diff)
downloadcpython-935ea9a0b291b2ce42a5cf02d9f2f2955e21a6aa.zip
cpython-935ea9a0b291b2ce42a5cf02d9f2f2955e21a6aa.tar.gz
cpython-935ea9a0b291b2ce42a5cf02d9f2f2955e21a6aa.tar.bz2
Improve subprocess link error notification
M NEWS.txt M PyShell.py M rpc.py
Diffstat (limited to 'Lib/idlelib/rpc.py')
-rw-r--r--Lib/idlelib/rpc.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/Lib/idlelib/rpc.py b/Lib/idlelib/rpc.py
index 402cfa7..3bac6a3 100644
--- a/Lib/idlelib/rpc.py
+++ b/Lib/idlelib/rpc.py
@@ -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:]