changeset 288:76247af9917c

core: added plugin dependency not found import error
author Goffi <goffi@goffi.org>
date Sun, 06 Feb 2011 23:32:13 +0100
parents 2720536b5a22
children 0e54b1b0a8c8
files src/sat.tac
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/sat.tac	Sun Feb 06 22:41:32 2011 +0100
+++ b/src/sat.tac	Sun Feb 06 23:32:13 2011 +0100
@@ -409,6 +409,8 @@
         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: