1
0
mirror of https://gitlab.com/simple-stock-bots/simple-stock-bot.git synced 2025-06-16 07:16:40 +00:00

okay actually finish patch lol

This commit is contained in:
Anson 2023-10-16 23:59:23 -06:00
parent 850598b696
commit 2d94d19b52

View File

@ -40,7 +40,8 @@ class cg_Crypto:
if resp.status_code == 429: if resp.status_code == 429:
log.warning(f"CoinGecko returned 429 - Too Many Requests for endpoint: {endpoint}. Sleeping and trying again.") log.warning(f"CoinGecko returned 429 - Too Many Requests for endpoint: {endpoint}. Sleeping and trying again.")
time.sleep(10) time.sleep(10)
self.get(endpoint=endpoint,params=params,timeout=timeout) return self.get(endpoint=endpoint,params=params,timeout=timeout)
try: try:
resp.raise_for_status() resp.raise_for_status()