From 4c787b562884e5cb8d19945f383cdd0b43107400 Mon Sep 17 00:00:00 2001 From: Georg Pfuetzenreuter Date: Sun, 21 May 2023 02:38:44 +0200 Subject: [PATCH] Repair undefined box section check Signed-off-by: Georg Pfuetzenreuter --- scullery.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scullery.py b/scullery.py index 950c705..d550a2d 100755 --- a/scullery.py +++ b/scullery.py @@ -59,7 +59,7 @@ def _abort(msg): def _config(): configmap = {'boxes': {}, 'suites': {}, 'tests': {}} - if not config.options('box'): + if not 'box' in config.sections(): _abort('No "box" section found in the configuration file') multis = {'boxes': {'prefix': 'box.', 'singular': 'box'}, 'suites': {'prefix': 'suite.', 'singular': 'suite'}, 'tests': {'prefix': 'test.', 'singular': 'test'}} for multi, multiconf in multis.items():