From faf1277abf9e679d35b70ed6a4373aeb77d3924b Mon Sep 17 00:00:00 2001 From: Viktor Valadi <42983197+viktorvaladi@users.noreply.github.com> Date: Mon, 4 Nov 2024 17:06:09 +0100 Subject: [PATCH] Feature/SK-946 | Default value on session config (#735) --- fedn/network/controller/control.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fedn/network/controller/control.py b/fedn/network/controller/control.py index 4fcfcd734..c2b430fd5 100644 --- a/fedn/network/controller/control.py +++ b/fedn/network/controller/control.py @@ -129,7 +129,7 @@ def start_session(self, session_id: str, rounds: int, round_timeout: int) -> Non for combiner in self.network.get_combiners(): combiner.set_aggregator(aggregator) - if session_config["server_functions"] is not None: + if session_config.get("server_functions", None) is not None: combiner.set_server_functions(session_config["server_functions"]) self.set_session_status(session_id, "Started")