Add missing while loop to Curl-Impersonate downloader

This commit is contained in:
rlaphoenix 2024-01-23 09:45:31 +00:00
parent 172ab64017
commit ba93c78b99
1 changed files with 28 additions and 26 deletions

View File

@ -70,6 +70,8 @@ def curl_impersonate(
for url, out_path in uri: for url, out_path in uri:
out_path.parent.mkdir(parents=True, exist_ok=True) out_path.parent.mkdir(parents=True, exist_ok=True)
attempts = 1 attempts = 1
while True:
try: try:
stream = session.get(url, stream=True) stream = session.get(url, stream=True)
stream.raise_for_status() stream.raise_for_status()