From db7c1687a75e2050686159142e55080c63a89054 Mon Sep 17 00:00:00 2001 From: Cyrille L Date: Tue, 28 Mar 2023 15:30:03 +0200 Subject: [PATCH] logs. Out 0 for 21, 28 codes --- src/var/lib/tyto/program/logs.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/var/lib/tyto/program/logs.py b/src/var/lib/tyto/program/logs.py index c7229de..d4eaff5 100644 --- a/src/var/lib/tyto/program/logs.py +++ b/src/var/lib/tyto/program/logs.py @@ -80,6 +80,7 @@ def out(nbr, value, out): msg = logs[nbr] print(msg) - if int(nbr) == 21: nbr = 0 + out_0 = (21, 28) + if int(nbr) in out_0: nbr = 0 if out: sys.exit(int(nbr))