Skip to content

Commit

Permalink
Bug/SK-937 | Update for previous clients fails, missing client_id (#655
Browse files Browse the repository at this point in the history
)
  • Loading branch information
Wrede authored Jul 11, 2024
1 parent 49e53d2 commit 5af54fc
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion fedn/network/combiner/combiner.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,10 @@ def __init__(self, config):
# Set the status to offline for previous clients.
previous_clients = self.statestore.clients.find({"combiner": config["name"]})
for client in previous_clients:
self.statestore.set_client({"name": client["name"], "status": "offline", "client_id": client["client_id"]})
try:
self.statestore.set_client({"name": client["name"], "status": "offline", "client_id": client["client_id"]})
except KeyError:
self.statestore.set_client({"name": client["name"], "status": "offline"})

self.modelservice = ModelService()

Expand Down

0 comments on commit 5af54fc

Please sign in to comment.