if not Risotto module, do not failed

This commit is contained in:
Emmanuel Garette 2021-04-13 10:31:14 +02:00
parent 01834c6ba7
commit 5663b2768b

View File

@ -277,7 +277,7 @@ class RegisterDispatcher:
try: try:
self.injected_self[submodule_name] = module.Risotto(test) self.injected_self[submodule_name] = module.Risotto(test)
except AttributeError as err: except AttributeError as err:
raise RegistrationError(_(f'unable to register the module {submodule_name}, this module must have Risotto class')) print(_(f'unable to register the module {submodule_name}, this module must have Risotto class'))
def validate(self): def validate(self):
""" check if all messages have a function """ check if all messages have a function