Skip to content

Commit

Permalink
Bug/SK-703 | Client doesn't handle model retrieve error correctly (#536)
Browse files Browse the repository at this point in the history
  • Loading branch information
niklastheman authored Feb 27, 2024
1 parent d5bcfba commit 2627772
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions fedn/fedn/network/clients/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2627772

Please sign in to comment.