From 59a7a0d842aa2961c21fe9e4467c852e1c104e19 Mon Sep 17 00:00:00 2001 From: Laurent Bachelier Date: Fri, 19 Jul 2013 13:51:27 +0200 Subject: [PATCH] Explicit module load errors --- weboob/core/modules.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/weboob/core/modules.py b/weboob/core/modules.py index 1d67f3a5..f24095b3 100644 --- a/weboob/core/modules.py +++ b/weboob/core/modules.py @@ -128,9 +128,9 @@ class ModulesLoader(object): minfo = self.repositories.get_module_info(module_name) if minfo is None: - raise ModuleLoadError(module_name, 'No such module') + raise ModuleLoadError(module_name, 'No such module %s' % module_name) if minfo.path is None: - raise ModuleLoadError(module_name, 'Module is not installed') + raise ModuleLoadError(module_name, 'Module %s is not installed' % module_name) try: fp, pathname, description = imp.find_module(module_name, [minfo.path])