From 687e06eebca8c114a3a5684ee7bcaa555ea5f201 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20S=C3=A1nchez-Gallego?= Date: Tue, 24 Dec 2024 22:58:11 -0800 Subject: [PATCH] Set a limit of one day for the timeout in engineering mode --- python/lvmecp/actor/commands/engineering.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/lvmecp/actor/commands/engineering.py b/python/lvmecp/actor/commands/engineering.py index f6cd4ca..f89533a 100644 --- a/python/lvmecp/actor/commands/engineering.py +++ b/python/lvmecp/actor/commands/engineering.py @@ -30,7 +30,7 @@ def engineering_mode(): @click.option( "--timeout", "-t", - type=float, + type=click.FloatRange(min=0.1, max=86400), help="Timeout for the engineering mode. " "If not passed, the default timeout is used.", )