Closed GuillaumeFalourd closed 3 years ago
Thank you for this PR, I'll just add retries before exiting in your PR
If you want I can update the code to something like this:
if "rateLimitExceeded" in req.text:
for i in range(0,5):
req = client.get(url)
if "rateLimitExceeded" in req.text and i == 4:
print("Rate Limit Exceeded. Try again later.")
exit()
else:
continue
Sometimes, the request can return the following message:
In that case, the code breaks and returns:
This is just a check to return a friendly message to the user instead of the error above.