From 10bafe1281f8b808ec8171eaa991a5b282f8d066 Mon Sep 17 00:00:00 2001 From: Joel Collins Date: Mon, 8 Apr 2019 08:08:30 +0100 Subject: [PATCH] Replace missing configs with empty dictionary --- openflexure_microscope/config.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/openflexure_microscope/config.py b/openflexure_microscope/config.py index a92cb88c..de25b665 100644 --- a/openflexure_microscope/config.py +++ b/openflexure_microscope/config.py @@ -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