From 84e1ad47c469ff522fd07c63a201ae4effe6d440 Mon Sep 17 00:00:00 2001 From: Cyrille L Date: Wed, 15 Mar 2023 10:06:57 +0100 Subject: [PATCH] list: fix when line is empty ; show error --- src/var/lib/tyto/program/check.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/var/lib/tyto/program/check.py b/src/var/lib/tyto/program/check.py index 5b0c470..260c201 100644 --- a/src/var/lib/tyto/program/check.py +++ b/src/var/lib/tyto/program/check.py @@ -657,7 +657,7 @@ def check_content(post_bottom): elif line.startswith('-)'): inlist = False if not inlist: continue - if not line[0] in tyto.markers_lists: + if inlist and not line or not line[0] in tyto.markers_lists: logs.out("3", 'line %s must start with %s'%( ln, markers_lists ), False