Skip to content

Commit

Permalink
Fix config on start up (#827)
Browse files Browse the repository at this point in the history
* Fixing bug with new user config
  • Loading branch information
rob-c committed Oct 6, 2016
1 parent 94fa8d3 commit 1a5263d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion python/Ganga/Utility/Config/Config.py
Original file line number Diff line number Diff line change
Expand Up @@ -853,7 +853,11 @@ def load_user_config(filename, system_vars):
return
new_cfg = read_ini_files(filename, system_vars)
for name in new_cfg.sections():
current_cfg_section = getConfig(name)
try:
current_cfg_section = getConfig(name)
except KeyError:
continue

if not current_cfg_section.options: # if this section does not exists
# supressing these messages as depending on what stage of the bootstrap.py you
# call the function more or less of the default options have been loaded
Expand Down

0 comments on commit 1a5263d

Please sign in to comment.