mod from Joe Strout: when quitting, catch errors in window.close() methods and ignore them. Otherwise one can never quit.

This commit is contained in:
Just van Rossum 1999-06-22 18:37:35 +00:00
parent 8746082175
commit d58c7464d9
1 changed files with 4 additions and 1 deletions

View File

@ -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