From 140126b28c2171ec11dc8c1cd756f8c75266b5bf Mon Sep 17 00:00:00 2001 From: belthlemar Date: Fri, 17 Nov 2023 17:14:44 +0100 Subject: [PATCH] fix(config): add default value for partition --- antarest/core/config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/antarest/core/config.py b/antarest/core/config.py index f607f8bf1b..2ba7a72745 100644 --- a/antarest/core/config.py +++ b/antarest/core/config.py @@ -291,7 +291,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,