Skip to content

Commit

Permalink
Do not fail entire job if last list download fails
Browse files Browse the repository at this point in the history
  • Loading branch information
xarantolus committed May 2, 2024
1 parent cf1edf0 commit b64b5ae
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions util/download.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ func DownloadURLs(inputURLs []string, tempDir string) (outputPaths []string, err
outputPaths = append(outputPaths, fn)
}

err = nil

if errCount > (len(inputURLs) / 2) {
err = fmt.Errorf("%d/%d urls couldn't be downloaded", errCount, len(inputURLs))
}
Expand Down

0 comments on commit b64b5ae

Please sign in to comment.