From fa7fdc2a58c6855005d02d342a9c2677b3890cba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20S=C3=A1nchez-Gallego?= Date: Tue, 24 Dec 2024 21:03:59 -0800 Subject: [PATCH] finally -> else in heartbeat command --- python/lvmecp/actor/commands/heartbeat.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()