From b6d782e05dbfc774c5dbe1c3722029f3fe656ae7 Mon Sep 17 00:00:00 2001 From: Niklas Date: Thu, 2 Nov 2023 16:28:11 +0100 Subject: [PATCH] Check if clients object has last_seen property --- fedn/fedn/network/api/interface.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fedn/fedn/network/api/interface.py b/fedn/fedn/network/api/interface.py index 3a20e3502..f4a2bd2d6 100644 --- a/fedn/fedn/network/api/interface.py +++ b/fedn/fedn/network/api/interface.py @@ -81,7 +81,7 @@ def get_clients(self, limit=None, skip=None, status=False): "combiner_preferred": element["combiner_preferred"], "ip": element["ip"], "status": element["status"], - "last_seen": element["last_seen"], + "last_seen": element["last_seen"] if element.has_key("last_seen") else "", } arr.append(obj)