Skip to content

Commit

Permalink
Feature/SK-946 | Default value on session config (#735)
Browse files Browse the repository at this point in the history
  • Loading branch information
viktorvaladi authored Nov 4, 2024
1 parent c03519c commit faf1277
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fedn/network/controller/control.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit faf1277

Please sign in to comment.