Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Catch rate limit errors and raise them so that callers can response appropriately. #2

Merged
merged 2 commits into from
May 23, 2024

Conversation

jeffmcfadden
Copy link
Contributor

Description

When a rate limit is hit on the REST client, raise a RateLimitExceededError, so that callers can then handle that situation as desired.

Reason/Reference

If you don't know you hit a rate limit, you might continue errantly.

@jeffmcfadden jeffmcfadden merged commit e69b800 into main May 23, 2024
2 checks passed
@jeffmcfadden jeffmcfadden deleted the rate_limit_handling branch May 23, 2024 16:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants