Skip to content

Commit

Permalink
Skip empty config file
Browse files Browse the repository at this point in the history
  • Loading branch information
gareth-j committed Oct 16, 2024
1 parent b366f9d commit a62106b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions wellies/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -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():
Expand Down

0 comments on commit a62106b

Please sign in to comment.