From a62106b7918f49b501190876b8a591917a3b5e09 Mon Sep 17 00:00:00 2001 From: Gareth Jones Date: Wed, 16 Oct 2024 10:53:20 +0000 Subject: [PATCH] Skip empty config file --- wellies/config.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/wellies/config.py b/wellies/config.py index 51387cc..cb5e488 100644 --- a/wellies/config.py +++ b/wellies/config.py @@ -110,6 +110,10 @@ def concatenate_yaml_files(yaml_files): with open(yaml_path, "r") as file: local_options = yaml.load(file, Loader=yaml.SafeLoader) + # Skip empty files + if local_options is None: + continue + # check for duplicates duplicated_keys = [] for key in local_options.keys():