mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-08 21:53:29 +02:00
Only report unhandled errors if excepthook is the default
This commit is contained in:
parent
1c13f9634c
commit
605857e276
1 changed files with 1 additions and 1 deletions
|
|
@ -88,7 +88,7 @@ def fake_getline(filename, lineno, module_globals=None):
|
|||
try:
|
||||
main()
|
||||
except Exception:
|
||||
if sys.gui_app:
|
||||
if sys.gui_app and sys.excepthook == sys.__excepthook__:
|
||||
import traceback
|
||||
import calibre_os_module
|
||||
calibre_os_module.gui_error_message(
|
||||
|
|
|
|||
Loading…
Reference in a new issue