From: Kurt B. Kaiser Date: Tue, 24 Dec 2002 03:33:12 +0000 (+0000) Subject: IDLE should exit if it fails to connect with the execution server X-Git-Tag: v2.3c1~2898 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a2a3cb23defa5e17a159982adac33e3dd58d8a93;p=python IDLE should exit if it fails to connect with the execution server subprocess. Currently it opens a dead shell window. --- diff --git a/Lib/idlelib/PyShell.py b/Lib/idlelib/PyShell.py index d89802c5e6..e3605ac868 100644 --- a/Lib/idlelib/PyShell.py +++ b/Lib/idlelib/PyShell.py @@ -340,7 +340,7 @@ class ModifiedInterpreter(InteractiveInterpreter): + ", retrying..." else: display_port_binding_error() - return + sys.exit() # Accept the connection from the Python execution server self.rpcclt.accept() self.rpcclt.register("stdin", self.tkconsole)