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):