Commit a94d6c99 authored by Romain Bignon's avatar Romain Bignon

check module version when loading it

parent 98854246
......@@ -142,5 +142,8 @@ class ModulesLoader(object):
if module.version != self.repositories.version:
raise ModuleLoadError(module_name, "Module requires Weboob %s, but you use Weboob %s" % (module.version, self.repositories.version))
self.loaded[module_name] = module
self.logger.debug('Loaded module "%s" from %s' % (module_name, module.package.__path__[0]))
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment