Skip to content

Commit b64b5ae

Browse files
committed
Do not fail entire job if last list download fails
1 parent cf1edf0 commit b64b5ae

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

util/download.go

+2
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,8 @@ func DownloadURLs(inputURLs []string, tempDir string) (outputPaths []string, err
5555
outputPaths = append(outputPaths, fn)
5656
}
5757

58+
err = nil
59+
5860
if errCount > (len(inputURLs) / 2) {
5961
err = fmt.Errorf("%d/%d urls couldn't be downloaded", errCount, len(inputURLs))
6062
}

0 commit comments

Comments
 (0)