From 996ea67ec7b1e0e5f1a0ef53dec8c80a1e059ebb Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Thu, 17 Mar 2011 09:08:27 -0600 Subject: [PATCH] Fix #9422 (I've been getting this error when closing calibre) --- src/calibre/gui2/ui.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/calibre/gui2/ui.py b/src/calibre/gui2/ui.py index 4af8c1ea54..7b94c1e821 100644 --- a/src/calibre/gui2/ui.py +++ b/src/calibre/gui2/ui.py @@ -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):