Fixed massive bug in config contraction

This commit is contained in:
Joel Collins 2019-01-30 18:23:26 +00:00
parent e0c09b2845
commit cd1e450a2b

View file

@ -93,10 +93,10 @@ class OpenflexureConfig():
type(value) is dict):
# Create the file if it doesn't exist
self.initialise_file(value)
self.initialise_file(self.raw_config[key])
self.save_yaml_file(self.raw_config[key], value)
else:
self.raw_config = value
self.raw_config[key] = value
def load_yaml_file(self, config_path) -> dict: