mirror of
https://github.com/unshackle-dl/unshackle.git
synced 2026-11-22 08:55:07 +00:00
fix(vaults): back off longer on 429 and shorten the skip messages
This commit is contained in:
@@ -38,7 +38,7 @@ class API(Vault):
|
||||
allow_redirects=False,
|
||||
)
|
||||
if response.status_code == 429:
|
||||
raise Exceptions.TooManyRequests(f"Vault {self.name} rate limited the lookup")
|
||||
raise Exceptions.TooManyRequests()
|
||||
response.raise_for_status()
|
||||
data = response.json()
|
||||
|
||||
@@ -172,7 +172,7 @@ class API(Vault):
|
||||
continue
|
||||
|
||||
if response.status_code == 429:
|
||||
raise Exceptions.TooManyRequests(f"Vault {self.name} rate limited the push")
|
||||
raise Exceptions.TooManyRequests()
|
||||
response.raise_for_status()
|
||||
data = response.json()
|
||||
except (ValueError, HTTPError):
|
||||
|
||||
@@ -89,7 +89,7 @@ class HTTP(Vault):
|
||||
return {"status": "not_found"}
|
||||
|
||||
if r.status_code == 429:
|
||||
raise RateLimited(f"Vault {self.name} rate limited the request")
|
||||
raise RateLimited()
|
||||
|
||||
if not r.ok:
|
||||
try:
|
||||
|
||||
Reference in New Issue
Block a user