From 0fa2e8332defc8bbcab9e06bae186f6e1ba261a1 Mon Sep 17 00:00:00 2001 From: camea Date: Mon, 4 Dec 2023 15:46:50 +0100 Subject: [PATCH] do not complain when no output module is configured --- frappy/mixins.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/frappy/mixins.py b/frappy/mixins.py index d35f09b..c8e56ea 100644 --- a/frappy/mixins.py +++ b/frappy/mixins.py @@ -71,8 +71,11 @@ class HasOutputModule: def initModule(self): super().initModule() - if self.output_module: - self.output_module.register_input(self.name, self.deactivate_control) + try: + if self.output_module: + self.output_module.register_input(self.name, self.deactivate_control) + except Exception: + self.log.info(f'{self.name} has no output module') def set_control_active(self, active): """to be overridden for switching hw control"""