mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-31 14:33:54 -04:00
Ignore errors in third party UI plugins during genesis
This commit is contained in:
parent
d47db93392
commit
6624fd0e42
@ -201,7 +201,14 @@ class Main(MainWindow, MainWindowMixin, DeviceMixin, EmailMixin, # {{{
|
|||||||
self.check_messages_timer.start(1000)
|
self.check_messages_timer.start(1000)
|
||||||
|
|
||||||
for ac in self.iactions.values():
|
for ac in self.iactions.values():
|
||||||
ac.do_genesis()
|
try:
|
||||||
|
ac.do_genesis()
|
||||||
|
except Exception:
|
||||||
|
# Ignore errors in third party plugins
|
||||||
|
import traceback
|
||||||
|
traceback.print_exc()
|
||||||
|
if getattr(ac, 'plugin_path', None) is None:
|
||||||
|
raise
|
||||||
self.donate_action = QAction(QIcon(I('donate.png')),
|
self.donate_action = QAction(QIcon(I('donate.png')),
|
||||||
_('&Donate to support calibre'), self)
|
_('&Donate to support calibre'), self)
|
||||||
for st in self.istores.values():
|
for st in self.istores.values():
|
||||||
|
Loading…
x
Reference in New Issue
Block a user