From 43dd8a4cdb207095e546f2690aebb2677cf251df Mon Sep 17 00:00:00 2001 From: Whispering Wind <151555003+ReturnFI@users.noreply.github.com> Date: Fri, 10 Jan 2025 13:08:19 +0330 Subject: [PATCH] Remove Comment --- core/scripts/hysteria2/update_geo.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/core/scripts/hysteria2/update_geo.py b/core/scripts/hysteria2/update_geo.py index 455ab7a..ba25ff3 100644 --- a/core/scripts/hysteria2/update_geo.py +++ b/core/scripts/hysteria2/update_geo.py @@ -33,10 +33,9 @@ def remove_file(file_path): def download_file(url, destination, chunk_size=8192): try: - # Ensure the destination directory exists destination_dir = os.path.dirname(destination) if destination_dir and not os.path.exists(destination_dir): - os.makedirs(destination_dir) # Create the directory if it doesn't exist + os.makedirs(destination_dir) response = requests.get(url, stream=True) response.raise_for_status()