weboob-config add: fix double message "Unable to load module"

This commit is contained in:
Romain Bignon 2013-01-14 21:22:03 +01:00
commit 32e965d338
2 changed files with 2 additions and 2 deletions

View file

@ -29,7 +29,7 @@ __all__ = ['Module', 'ModulesLoader', 'ModuleLoadError']
class ModuleLoadError(Exception):
def __init__(self, module_name, msg):
Exception.__init__(self, u'Unable to load module "%s": %s' % (module_name, msg))
Exception.__init__(self, msg)
self.module = module_name
class Module(object):

View file

@ -217,7 +217,7 @@ class Weboob(object):
try:
module = self.modules_loader.get_or_load_module(module_name)
except ModuleLoadError, e:
self.logger.error(e)
self.logger.error(u'Unable to load module "%s": %s' % (module_name, e))
continue
if instance_name in self.backend_instances: