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 {
|
||||
return
|
||||
}
|
||||
if strings.Contains(err.Error(), "Error 500000: Too many requests") {
|
||||
if strings.Contains(err.Error(), "unexpected status code from api: 405") {
|
||||
currentRetry++
|
||||
if currentRetry >= maxRetries {
|
||||
return
|
||||
|
Reference in New Issue
Block a user