weboob-config add: fix double message "Unable to load module"
This commit is contained in:
parent
76da084ec1
commit
32e965d338
2 changed files with 2 additions and 2 deletions
|
|
@ -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):
|
||||
|
|
|
|||
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue