mirror of
https://github.com/tuna/tunasync-scripts.git
synced 2025-07-01 07:22:45 +00:00
catch another CalledProcessError
This commit is contained in:
parent
3d5352b132
commit
94249cf07a
@ -122,7 +122,10 @@ def sync_repo(repo_url: str, local_dir: Path, tmpdir: Path):
|
||||
|
||||
for retry in range(3):
|
||||
logging.info("Downloading {}".format(filename))
|
||||
try:
|
||||
err = curl_download(pkg_url, dst_file, md5=md5)
|
||||
except sp.CalledProcessError:
|
||||
err = 'CalledProcessError'
|
||||
if err is None:
|
||||
break
|
||||
logging.error("Failed to download {}: {}".format(filename, err))
|
||||
|
Loading…
x
Reference in New Issue
Block a user