Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Wrede committed Dec 16, 2024
1 parent c319127 commit 68238fa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fedn/network/api/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,7 @@ def download_package(self, path: str):
else:
return {"success": False, "message": "Failed to download package."}

def set_active_package(self, path: str, helper: str, name: str = None, description: str = None):
def set_active_package(self, path: str, helper: str, name: str = "", description: str = ""):
"""Set the compute package in the statestore.
:param path: The file path of the compute package to set.
Expand All @@ -442,7 +442,7 @@ def set_active_package(self, path: str, helper: str, name: str = None, descripti
"""
with open(path, "rb") as file:
response = requests.post(
self._get_url("set_package"),
self._get_url_api_v1("packages"),
files={"file": file},
data={"helper": helper, "name": name, "description": description},
verify=self.verify,
Expand Down

0 comments on commit 68238fa

Please sign in to comment.