From cf8d403d3f180c40011591a53ab18806a101285a Mon Sep 17 00:00:00 2001 From: Tommaso Comparin <3862206+tcompa@users.noreply.github.com> Date: Thu, 5 Dec 2024 13:57:45 +0100 Subject: [PATCH] Rename variable --- fractal_client/cmd/_task_collection.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/fractal_client/cmd/_task_collection.py b/fractal_client/cmd/_task_collection.py index 44137f52..d97bf1d8 100644 --- a/fractal_client/cmd/_task_collection.py +++ b/fractal_client/cmd/_task_collection.py @@ -48,15 +48,14 @@ def task_collect_pip( is_private = "?private=true" if private else "" endpoint_url = f"{settings.BASE_URL}/task/collect/pip/{is_private}" if package.endswith(".whl"): - with open(package, "rb") as wheel_buffer: + with open(package, "rb") as f: file = { "file": ( Path(package).name, - wheel_buffer.read(), + f.read(), "application/zip", ) } - res = client.post( endpoint_url, data=task_collect,