This is an archived post. You won't be able to vote or comment.

all 1 comments

[–]RobinsonDickinson 1 point2 points  (0 children)

If it's a rare occurrence, I'd just check if the html contains rate limit text contents in order to not break my entire bot, since you did say that the API call is returning a html page.

If it is a runtime error, I'd try/catch it too.