Skip to content

Commit

Permalink
Merge pull request #365 from populse/populsedb3_as_list
Browse files Browse the repository at this point in the history
import config values from a dict only if value != {}
  • Loading branch information
sapetnioc authored Dec 4, 2024
2 parents fbc7070 + ccb72a1 commit 8b57118
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion capsul/engine/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,8 @@ def import_configs(self, environment, config_dict, cont_on_error=False):
for k, v in config.items()
if k not in ("config_id", "config_environment")
}
conf.set_values(values)
if values:
conf.set_values(values)
else:
session.new_config(module, environment, config)
except Exception as e:
Expand Down

0 comments on commit 8b57118

Please sign in to comment.