mirror of
https://gitlab.com/simple-stock-bots/simple-stock-bot.git
synced 2025-06-15 14:56:40 +00:00
black
This commit is contained in:
parent
2d94d19b52
commit
d5e40a976b
@ -40,8 +40,7 @@ class cg_Crypto:
|
||||
if resp.status_code == 429:
|
||||
log.warning(f"CoinGecko returned 429 - Too Many Requests for endpoint: {endpoint}. Sleeping and trying again.")
|
||||
time.sleep(10)
|
||||
return self.get(endpoint=endpoint,params=params,timeout=timeout)
|
||||
|
||||
return self.get(endpoint=endpoint, params=params, timeout=timeout)
|
||||
|
||||
try:
|
||||
resp.raise_for_status()
|
||||
|
Loading…
x
Reference in New Issue
Block a user