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():