Skip to content

Commit

Permalink
Fixed typo for key
Browse files Browse the repository at this point in the history
  • Loading branch information
burruplambert authored Sep 5, 2024
1 parent 85bbc31 commit 054097b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tweeterpy/request_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.')
Expand Down

0 comments on commit 054097b

Please sign in to comment.