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

While Loop Ratelimit Errors #13

Conversation

RobertTownley
Copy link

Fixes jeremyjbowers#27

This PR adds a check to ensure that the x-ratelimit-remaining header is set before attempting to access it, causing a KeyError. This header is currently not set for users who have had their API key's rate limit increased by the FEC, and the bug is encountered when that API key has precisely 0 API calls remaining.

@RobertTownley RobertTownley changed the base branch from master to 25-ratelimit-keyerror-fix August 27, 2018 21:25
@esonderegger esonderegger merged commit 38d7cc7 into esonderegger:25-ratelimit-keyerror-fix Aug 27, 2018
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.

2 participants