raise an error if module is not found
This commit is contained in:
parent
03f68b4207
commit
7cf5cb565c
1 changed files with 1 additions and 2 deletions
|
|
@ -161,8 +161,7 @@ class Weboob(object):
|
|||
"""
|
||||
minfo = self.repositories.get_module_info(module_name)
|
||||
if minfo is None:
|
||||
self.logger.warning(u'Backend "%s" does not exist.' % module_name)
|
||||
return
|
||||
raise ModuleLoadError('Module "%s" does not exist.' % module_name)
|
||||
|
||||
if not minfo.is_installed():
|
||||
self.repositories.install(minfo)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue