diff --git a/gajim/plugins/pluginmanager.py b/gajim/plugins/pluginmanager.py index 7c2b1e071..39edde419 100644 --- a/gajim/plugins/pluginmanager.py +++ b/gajim/plugins/pluginmanager.py @@ -163,6 +163,8 @@ class PluginManager(metaclass=Singleton): if activate: pc = self.scan_dir_for_plugins(dst_dir, scan_dirs=True, package=True) + if not pc: + continue self.add_plugin(pc[0]) plugin = self.plugins[-1] self.activate_plugin(plugin)