From 2d94d19b529f2bd69761b98d6db64c07bb93ec6e Mon Sep 17 00:00:00 2001 From: Anson Date: Mon, 16 Oct 2023 23:59:23 -0600 Subject: [PATCH] okay actually finish patch lol --- common/cg_Crypto.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/common/cg_Crypto.py b/common/cg_Crypto.py index 4421b6b..dcfa3ab 100644 --- a/common/cg_Crypto.py +++ b/common/cg_Crypto.py @@ -40,7 +40,8 @@ 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) - self.get(endpoint=endpoint,params=params,timeout=timeout) + return self.get(endpoint=endpoint,params=params,timeout=timeout) + try: resp.raise_for_status()