From 054097b62882e400629626f639261d198e372661 Mon Sep 17 00:00:00 2001 From: burruplambert <36841939+burruplambert@users.noreply.github.com> Date: Thu, 5 Sep 2024 08:11:18 -0300 Subject: [PATCH] Fixed typo for key --- tweeterpy/request_util.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tweeterpy/request_util.py b/tweeterpy/request_util.py index d5b46de..85df6ec 100644 --- a/tweeterpy/request_util.py +++ b/tweeterpy/request_util.py @@ -60,7 +60,7 @@ def request(self, url, method=None, max_retries=None, timeout=None, skip_error_c logger.debug(f"Retry No. ==> {retry_count}") if retry_count >= max_retries: logger.exception(f"{error}\n{response_text}\n") - if api_limit_stats.get('exhausted'): + if api_limit_stats.get('rate_limit_exhausted'): logger.error( f"Rate Limit Exceeded => {api_limit_stats}") raise util.RateLimitError('API Rate Limit Exceeded.')