Please sign in to comment.
Limit number of repetitions for retryable requests
If a RetryableAPIError exception is raised, we only repeat the request MAX_RETRIES number of times before raising an APIError. This guards against infinite loops, while still allowing most 403 errors to be worked around. As I explained in the commit message for 6cae2e3, this logic is still pretty vague because GitHub hasn't documented their rate limiting policy yet.
- Loading branch information...
Showing with 21 additions and 11 deletions.