From cfac8a90e0e634b0b9f8be78b5d9c794c661854a Mon Sep 17 00:00:00 2001 From: viktorvaladi Date: Tue, 8 Oct 2024 10:25:00 +0200 Subject: [PATCH] cleanup --- fedn/network/clients/client.py | 2 +- fedn/network/combiner/hooks/hooks.py | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/fedn/network/clients/client.py b/fedn/network/clients/client.py index 953f724e6..ae23b59af 100644 --- a/fedn/network/clients/client.py +++ b/fedn/network/clients/client.py @@ -623,7 +623,7 @@ def process_request(self): if task_type == "train": tic = time.time() self.state = ClientState.training - client_config = json.loads(request.data)["client_config"] + client_config = json.loads(request.data).get("client_config", {}) model_id, meta = self._process_training_request(request.model_id, session_id=request.session_id, client_config=client_config) if meta is not None: diff --git a/fedn/network/combiner/hooks/hooks.py b/fedn/network/combiner/hooks/hooks.py index 9fa8cc741..5c749a63a 100644 --- a/fedn/network/combiner/hooks/hooks.py +++ b/fedn/network/combiner/hooks/hooks.py @@ -84,7 +84,6 @@ def HandleProvidedFunctions(self, request, context): # check if aggregation is available try: ret = self.server_functions.aggregate(0, 0) - logger.info(f"ret : {ret}") if ret is None: implemented_functions["aggregate"] = False else: