Skip to content

Commit 1a5263d

Browse files
authored
Fix config on start up (#827)
* Fixing bug with new user config
1 parent 94fa8d3 commit 1a5263d

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

python/Ganga/Utility/Config/Config.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -853,7 +853,11 @@ def load_user_config(filename, system_vars):
853853
return
854854
new_cfg = read_ini_files(filename, system_vars)
855855
for name in new_cfg.sections():
856-
current_cfg_section = getConfig(name)
856+
try:
857+
current_cfg_section = getConfig(name)
858+
except KeyError:
859+
continue
860+
857861
if not current_cfg_section.options: # if this section does not exists
858862
# supressing these messages as depending on what stage of the bootstrap.py you
859863
# call the function more or less of the default options have been loaded

0 commit comments

Comments
 (0)