mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-06-23 15:30:45 -04:00
When updating a previously broken plugin, do not show an error message because the previous version of the plugin cannot be loaded
This commit is contained in:
parent
e7f02781af
commit
570b2e5824
@ -403,7 +403,12 @@ class ConfigWidget(ConfigWidgetBase, Ui_Form):
|
|||||||
return
|
return
|
||||||
|
|
||||||
all_locations = OrderedDict(ConfigWidget.LOCATIONS)
|
all_locations = OrderedDict(ConfigWidget.LOCATIONS)
|
||||||
plugin_action = plugin.load_actual_plugin(self.gui)
|
try:
|
||||||
|
plugin_action = plugin.load_actual_plugin(self.gui)
|
||||||
|
except:
|
||||||
|
# Broken plugin, fails to initialize. Given that, it's probably
|
||||||
|
# already configured, so we can just quit.
|
||||||
|
return
|
||||||
installed_actions = OrderedDict([
|
installed_actions = OrderedDict([
|
||||||
(key, list(gprefs.get('action-layout-'+key, [])))
|
(key, list(gprefs.get('action-layout-'+key, [])))
|
||||||
for key in all_locations])
|
for key in all_locations])
|
||||||
|
Loading…
x
Reference in New Issue
Block a user