diff --git a/python/lvmecp/actor/commands/heartbeat.py b/python/lvmecp/actor/commands/heartbeat.py index 2280704..8eb8c78 100644 --- a/python/lvmecp/actor/commands/heartbeat.py +++ b/python/lvmecp/actor/commands/heartbeat.py @@ -25,5 +25,5 @@ async def heartbeat(command: ECPCommand): await command.actor.plc.modbus["hb_set"].set(True) except Exception: return command.fail("Failed to set heartbeat.") - finally: + else: return command.finish()