Fix #9422 (I've been getting this error when closing calibre)

This commit is contained in:
Kovid Goyal 2011-03-17 09:08:27 -06:00
parent 49e4f2cf28
commit 996ea67ec7

View File

@ -656,6 +656,8 @@ class Main(MainWindow, MainWindowMixin, DeviceMixin, EmailMixin, # {{{
pass
time.sleep(2)
self.hide_windows()
# Do not report any errors that happen after the shutdown
sys.excepthook = sys.__excepthook__
return True
def run_wizard(self, *args):