mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Ignore exceptions when flushing during shutdown
This commit is contained in:
parent
98484d9f88
commit
a9f1260021
@ -1323,7 +1323,10 @@ class Main(MainWindow, MainWindowMixin, DeviceMixin, EmailMixin, # {{{
|
|||||||
self.istores.join()
|
self.istores.join()
|
||||||
wait_for_cleanup()
|
wait_for_cleanup()
|
||||||
wait_for_stop()
|
wait_for_stop()
|
||||||
sys.stdout.flush() # Make sure any buffered prints are written for debug mode
|
try:
|
||||||
|
sys.stdout.flush() # Make sure any buffered prints are written for debug mode
|
||||||
|
except Exception:
|
||||||
|
pass
|
||||||
self.shutdown_completed.emit()
|
self.shutdown_completed.emit()
|
||||||
return True
|
return True
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user