Commit a7624b56 authored by Philipp Hörist's avatar Philipp Hörist
Browse files

Fix error when plugin cant be loaded

Fixes #9403
parent 9f2a0ae7
......@@ -163,6 +163,8 @@ def update_plugins(self, replace=True, activate=False, plugin_name=None):
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)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment