mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Only report unhandled errors if excepthook is the default
This commit is contained in:
parent
1c13f9634c
commit
605857e276
@ -88,7 +88,7 @@ if __name__ == '__main__':
|
|||||||
try:
|
try:
|
||||||
main()
|
main()
|
||||||
except Exception:
|
except Exception:
|
||||||
if sys.gui_app:
|
if sys.gui_app and sys.excepthook == sys.__excepthook__:
|
||||||
import traceback
|
import traceback
|
||||||
import calibre_os_module
|
import calibre_os_module
|
||||||
calibre_os_module.gui_error_message(
|
calibre_os_module.gui_error_message(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user