mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Also ignore traceback failure when showing startup failure dialog
This commit is contained in:
parent
894a9682fd
commit
37fee2b5b2
@ -291,10 +291,13 @@ class GuiRunner(QObject):
|
|||||||
try:
|
try:
|
||||||
self.start_gui(db)
|
self.start_gui(db)
|
||||||
except Exception:
|
except Exception:
|
||||||
|
try:
|
||||||
|
details = traceback.format_exc()
|
||||||
|
except Exception:
|
||||||
|
details = ''
|
||||||
self.show_error(_('Startup error'), _(
|
self.show_error(_('Startup error'), _(
|
||||||
'There was an error during {0} startup. Parts of {0} may not function.'
|
'There was an error during {0} startup. Parts of {0} may not function.'
|
||||||
' Click Show details to learn more.').format(__appname__),
|
' Click Show details to learn more.').format(__appname__), det_msg=details)
|
||||||
det_msg=traceback.format_exc())
|
|
||||||
|
|
||||||
def initialize_db(self):
|
def initialize_db(self):
|
||||||
from calibre.db.legacy import LibraryDatabase
|
from calibre.db.legacy import LibraryDatabase
|
||||||
|
Loading…
x
Reference in New Issue
Block a user