mirror of
https://github.com/StackExchange/dnscontrol.git
synced 2024-05-11 05:55:12 +00:00
namecheap fix rate limit detection (#2081)
Co-authored-by: Tom Limoncelli <tlimoncelli@stackoverflow.com>
This commit is contained in:
@@ -99,7 +99,7 @@ func doWithRetry(f func() error) {
|
|||||||
if err == nil {
|
if err == nil {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
if strings.Contains(err.Error(), "Error 500000: Too many requests") {
|
if strings.Contains(err.Error(), "unexpected status code from api: 405") {
|
||||||
currentRetry++
|
currentRetry++
|
||||||
if currentRetry >= maxRetries {
|
if currentRetry >= maxRetries {
|
||||||
return
|
return
|
||||||
|
Reference in New Issue
Block a user