From ca5f769e9f0cbd026851f2dd940ac856ecdbac05 Mon Sep 17 00:00:00 2001 From: ronaldzgithub <36839548+ronaldzgithub@users.noreply.github.com> Date: Fri, 8 Nov 2024 16:28:16 +0800 Subject: [PATCH] d --- public.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public.py b/public.py index e9514a3..1324502 100644 --- a/public.py +++ b/public.py @@ -132,7 +132,7 @@ def set_executable_permission(file_path): print(f"Failed to set execution permissions: {e}") def download_file(url, dest_path): try: - print (f'ready to download file: {url, dest_path}') + with urllib.request.urlopen(url) as response, open(dest_path, 'wb') as out_file: data = response.read() out_file.write(data)