From 3d31348e1047e79e88216b18d8e62a3b0b160f7c Mon Sep 17 00:00:00 2001 From: Niklas Date: Tue, 27 Feb 2024 10:38:33 +0100 Subject: [PATCH] If model could not be retrived from combiner, meta will be None. This is now handled --- fedn/fedn/network/clients/client.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/fedn/fedn/network/clients/client.py b/fedn/fedn/network/clients/client.py index 60f310fca..a6408d66c 100644 --- a/fedn/fedn/network/clients/client.py +++ b/fedn/fedn/network/clients/client.py @@ -591,9 +591,11 @@ def process_request(self): self.state = ClientState.training model_id, meta = self._process_training_request( request.model_id, session_id=request.session_id) - processing_time = time.time()-tic - meta['processing_time'] = processing_time - meta['config'] = request.data + + if meta is not None: + processing_time = time.time()-tic + meta['processing_time'] = processing_time + meta['config'] = request.data if model_id is not None: # Send model update to combiner