add removing on fail download
Some checks failed
dl / lint (push) Failing after 1m19s
dl / docker (push) Has been skipped

This commit is contained in:
Michel Roux 2023-10-02 09:41:56 +02:00
parent 0611fb73e8
commit 04195cf311

View File

@ -36,6 +36,8 @@ def download(path, file):
stdout=sys.stdout, stdout=sys.stdout,
) )
except subprocess.CalledProcessError: except subprocess.CalledProcessError:
print(f"Removing {path}/{file}")
# os.remove(f"{path}/{file}")
print("Waiting for 10 minutes ...") print("Waiting for 10 minutes ...")
time.sleep(10 * 60) time.sleep(10 * 60)
download(path, file) download(path, file)