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

finish patch lol

This commit is contained in:
Anson 2023-10-16 23:55:32 -06:00
parent 43b58fdbe8
commit 850598b696

View File

@ -38,8 +38,9 @@ class cg_Crypto:
# Make sure API returned a proper status code # Make sure API returned a proper status code
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.")
time.sleep(10) time.sleep(10)
log.warning(f"CoinGecko returned 429 - Too Many Requests for endpoint: {endpoint}") self.get(endpoint=endpoint,params=params,timeout=timeout)
try: try:
resp.raise_for_status() resp.raise_for_status()