Merge branch 'main' of https://git.wow.st/gmp/goget
This commit is contained in:
commit
94d448e905
2
main.go
2
main.go
|
@ -37,7 +37,7 @@ func get_(symbol string) (error) {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
switch resp.StatusCode {
|
switch resp.StatusCode {
|
||||||
case 401, 429:
|
case 401, 429, 500:
|
||||||
throttle = true
|
throttle = true
|
||||||
return fmt.Errorf("%s", resp.Status)
|
return fmt.Errorf("%s", resp.Status)
|
||||||
err_(symbol,0) // do not limit retries
|
err_(symbol,0) // do not limit retries
|
||||||
|
|
Loading…
Reference in New Issue
Block a user