Mercurial > cpython-lru_cache-weakref
diff Mac/Tools/IDE/PythonIDEMain.py @ 11031:8b7f65b0db18 legacy-trunk
mod from Joe Strout: when quitting, catch errors in window.close() methods and ignore them. Otherwise one can never quit.
| author | Just van Rossum <just@lettererror.com> |
|---|---|
| date | Tue, 22 Jun 1999 18:37:35 +0000 |
| parents | a87cfea30b04 |
| children | c702a12d318d |
line wrap: on
line diff
--- a/Mac/Tools/IDE/PythonIDEMain.py Tue Jun 22 14:47:32 1999 +0000 +++ b/Mac/Tools/IDE/PythonIDEMain.py Tue Jun 22 18:37:35 1999 +0000 @@ -228,7 +228,10 @@ 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
