Skip to content

Commit

Permalink
check if file_name is present in package obj
Browse files Browse the repository at this point in the history
  • Loading branch information
niklastheman committed Dec 16, 2024
1 parent c319127 commit f6f0f55
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fedn/network/api/interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit f6f0f55

Please sign in to comment.