Mercurial > libervia-backend
diff src/sat.tac @ 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 | f7bd973bba5a |
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: