From 08fe232695f3118014659ffa80f89065779bf4e4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philipp=20H=C3=B6rist?= Date: Thu, 25 Oct 2018 21:20:21 +0200 Subject: [PATCH] Fix error when plugin cant be loaded Fixes #9403 --- gajim/plugins/pluginmanager.py | 2 ++ 1 file changed, 2 insertions(+) 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)