Daniel Brötzmann pushed to branch master at gajim / gajim

Commits:

1 changed file:

Changes:

  • gajim/gtk/plugins.py
    ... ... @@ -353,7 +353,10 @@ def _on_uninstall_plugin(self, _button: Gtk.ToolButton) -> None:
    353 353
     
    
    354 354
             manifest = model.get_value(iter_, Column.MANIFEST)
    
    355 355
             plugin = app.plugin_manager.get_plugin(manifest.short_name)
    
    356
    -        assert plugin is not None
    
    356
    +        if plugin is None:
    
    357
    +            WarningDialog(_('Unable to properly remove the plugin'))
    
    358
    +            return
    
    359
    +
    
    357 360
             try:
    
    358 361
                 app.plugin_manager.uninstall_plugin(plugin)
    
    359 362
             except PluginsystemError as error: