From 935ea9a0b291b2ce42a5cf02d9f2f2955e21a6aa Mon Sep 17 00:00:00 2001 From: "Kurt B. Kaiser" Date: Tue, 10 May 2005 03:44:24 +0000 Subject: Improve subprocess link error notification M NEWS.txt M PyShell.py M rpc.py --- Lib/idlelib/rpc.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'Lib/idlelib/rpc.py') diff --git a/Lib/idlelib/rpc.py b/Lib/idlelib/rpc.py index 402cfa7fa7..3bac6a30b3 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:] -- cgit v1.2.1