Skip to content

Commit

Permalink
fix(config): add default value for partition
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinBelthle committed Nov 17, 2023
1 parent 3905bcf commit 26a7c21
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion antarest/core/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ def from_dict(cls, data: JSON) -> "SlurmConfig":
default_time_limit=data.get("default_time_limit", defaults.default_time_limit),
default_json_db_name=data.get("default_json_db_name", defaults.default_json_db_name),
slurm_script_path=data.get("slurm_script_path", defaults.slurm_script_path),
partition=data["partition"],
partition=data.get("partition", defaults.partition),
antares_versions_on_remote_server=data.get(
"antares_versions_on_remote_server",
defaults.antares_versions_on_remote_server,
Expand Down

0 comments on commit 26a7c21

Please sign in to comment.