From 8e8460718049d7ae18f0672ef7bafbeaefcf6449 Mon Sep 17 00:00:00 2001 From: Niklas Date: Mon, 16 Dec 2024 09:53:44 +0100 Subject: [PATCH] check if file_name is present in package obj (#772) --- fedn/network/api/interface.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fedn/network/api/interface.py b/fedn/network/api/interface.py index eeaff3e05..6031051c1 100644 --- a/fedn/network/api/interface.py +++ b/fedn/network/api/interface.py @@ -276,7 +276,7 @@ def get_compute_package(self): :rtype: :class:`flask.Response` """ result = self.statestore.get_compute_package() - if result is None: + if result is None or "file_name" not in result: return ( jsonify({"success": False, "message": "No compute package found."}), 404,