core: added plugin dependency not found import error
This commit is contained in:
parent
afd456aa1d
commit
b91973e803
1 changed files with 2 additions and 0 deletions
|
|
@ -409,6 +409,8 @@ class SAT(service.Service):
|
|||
if not import_name:
|
||||
import_name,(plugin_path, mod, plugin_info) = plugins_to_import.popitem()
|
||||
else:
|
||||
if not import_name in plugins_to_import:
|
||||
raise ImportError(_('Dependency plugin not found: [%s]') % import_name)
|
||||
plugin_path, mod, plugin_info = plugins_to_import.pop(import_name)
|
||||
dependencies = plugin_info.setdefault("dependencies",[])
|
||||
for dependency in dependencies:
|
||||
|
|
|
|||
Loading…
Reference in a new issue