Replace missing configs with empty dictionary
This commit is contained in:
parent
6e4e0fac54
commit
10bafe1281
1 changed files with 2 additions and 0 deletions
|
|
@ -261,6 +261,8 @@ class OpenflexureConfig:
|
||||||
config_dict (dict): Dictionary of config data to expand
|
config_dict (dict): Dictionary of config data to expand
|
||||||
"""
|
"""
|
||||||
return_config = {}
|
return_config = {}
|
||||||
|
if not config_dict:
|
||||||
|
config_dict = {}
|
||||||
# For each value in the raw loaded config
|
# For each value in the raw loaded config
|
||||||
for key, value in config_dict.items():
|
for key, value in config_dict.items():
|
||||||
# If it's a valid expandable parameter
|
# If it's a valid expandable parameter
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue