summaryrefslogtreecommitdiffstats
path: root/Mac/Tools
diff options
context:
space:
mode:
authorJust van Rossum <just@lettererror.com>1999-06-22 18:37:35 (GMT)
committerJust van Rossum <just@lettererror.com>1999-06-22 18:37:35 (GMT)
commitd58c7464d96e212c2d0b458b9509a328a68f1961 (patch)
tree1b3299c9c44843f625b87ed2f90deea87e7d4653 /Mac/Tools
parent87460821755ba72294b0c95b7d130b922d2a7ea4 (diff)
downloadcpython-d58c7464d96e212c2d0b458b9509a328a68f1961.zip
cpython-d58c7464d96e212c2d0b458b9509a328a68f1961.tar.gz
cpython-d58c7464d96e212c2d0b458b9509a328a68f1961.tar.bz2
mod from Joe Strout: when quitting, catch errors in window.close() methods and ignore them. Otherwise one can never quit.
Diffstat (limited to 'Mac/Tools')
-rw-r--r--Mac/Tools/IDE/PythonIDEMain.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/Mac/Tools/IDE/PythonIDEMain.py b/Mac/Tools/IDE/PythonIDEMain.py
index b869359..ae5f0e3 100644
--- a/Mac/Tools/IDE/PythonIDEMain.py
+++ b/Mac/Tools/IDE/PythonIDEMain.py
@@ -228,7 +228,10 @@ class PythonIDE(Wapplication.Application):
PyConsole.output.writeprefs()
PyEdit.searchengine.writeprefs()
for window in self._windows.values():
- rv = window.close()
+ try:
+ rv = window.close() # ignore any errors while quitting
+ except:
+ rv = 0 # (otherwise, we can get stuck!)
if rv and rv > 0:
return
self.quitting = 1