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):