# HG changeset patch # User Goffi # Date 1297031533 -3600 # Node ID 76247af9917c6c1ae3c7f5fbae30cf9b3758bebd # Parent 2720536b5a22cd82cb70493d9596c03ed94af10f core: added plugin dependency not found import error diff -r 2720536b5a22 -r 76247af9917c src/sat.tac --- 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: