Replace missing configs with empty dictionary

This commit is contained in:
Joel Collins 2019-04-08 08:08:30 +01:00
parent 6e4e0fac54
commit 10bafe1281

View file

@ -261,6 +261,8 @@ class OpenflexureConfig:
config_dict (dict): Dictionary of config data to expand
"""
return_config = {}
if not config_dict:
config_dict = {}
# For each value in the raw loaded config
for key, value in config_dict.items():
# If it's a valid expandable parameter