Daniel Brötzmann pushed to branch master at gajim / gajim
Commits: e2569508 by wurstsalat at 2023-02-10T20:50:25+01:00 fix: Plugins: Don't fail hard on uninstall errors
Fixes #11389
- - - - -
1 changed file:
- gajim/gtk/plugins.py
Changes:
===================================== gajim/gtk/plugins.py ===================================== @@ -353,7 +353,10 @@ def _on_uninstall_plugin(self, _button: Gtk.ToolButton) -> None:
manifest = model.get_value(iter_, Column.MANIFEST) plugin = app.plugin_manager.get_plugin(manifest.short_name) - assert plugin is not None + if plugin is None: + WarningDialog(_('Unable to properly remove the plugin')) + return + try: app.plugin_manager.uninstall_plugin(plugin) except PluginsystemError as error:
View it on GitLab: https://dev.gajim.org/gajim/gajim/-/commit/e2569508f9dc4f2f4ccae791bf04a32ae...