From b91973e8033d49b9758570badac5dfc36fcf17b0 Mon Sep 17 00:00:00 2001 From: Goffi Date: Sun, 6 Feb 2011 23:32:13 +0100 Subject: [PATCH] core: added plugin dependency not found import error --- src/sat.tac | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/sat.tac b/src/sat.tac index f8380fa7..669907b2 100644 --- a/src/sat.tac +++ b/src/sat.tac @@ -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: