From 5663b2768b76976391117436ef6a5f34649e0efe Mon Sep 17 00:00:00 2001 From: Emmanuel Garette Date: Tue, 13 Apr 2021 10:31:14 +0200 Subject: [PATCH] if not Risotto module, do not failed --- src/risotto/register.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/risotto/register.py b/src/risotto/register.py index 672ea39..a4b3ad5 100644 --- a/src/risotto/register.py +++ b/src/risotto/register.py @@ -277,7 +277,7 @@ class RegisterDispatcher: try: self.injected_self[submodule_name] = module.Risotto(test) 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): """ check if all messages have a function