diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-15 03:34:42 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-15 03:34:42 +0000 |
commit | da4c7e7ed675c3bf405668739c3012d140856109 (patch) | |
tree | cdd868dba063fecba609a1d819de271f0d51b23e /taskcluster/scripts/misc/fetch-content | |
parent | Adding upstream version 125.0.3. (diff) | |
download | firefox-da4c7e7ed675c3bf405668739c3012d140856109.tar.xz firefox-da4c7e7ed675c3bf405668739c3012d140856109.zip |
Adding upstream version 126.0.upstream/126.0
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'taskcluster/scripts/misc/fetch-content')
-rwxr-xr-x | taskcluster/scripts/misc/fetch-content | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/taskcluster/scripts/misc/fetch-content b/taskcluster/scripts/misc/fetch-content index 6e7b625dce..8dcf0960cc 100755 --- a/taskcluster/scripts/misc/fetch-content +++ b/taskcluster/scripts/misc/fetch-content @@ -263,8 +263,6 @@ def download_to_path(url, path, sha256=None, size=None): fh.write(chunk) return - except IntegrityError: - raise except Exception as e: log("Download failed: {}".format(e)) continue @@ -275,17 +273,15 @@ def download_to_path(url, path, sha256=None, size=None): def download_to_memory(url, sha256=None, size=None): """Download a URL to memory, possibly with verification.""" - data = b"" for _ in retrier(attempts=5, sleeptime=60): - try: - log("Downloading %s" % (url)) + data = b"" + log("Downloading %s" % (url)) + try: for chunk in stream_download(url, sha256=sha256, size=size): data += chunk return data - except IntegrityError: - raise except Exception as e: log("Download failed: {}".format(e)) continue |