Skip to content

raise a RateLimitError when Twitter returns HTTP status 429#837

Open
PrivacyDevel wants to merge 2 commits into
zedeus:masterfrom
PrivacyDevel:429
Open

raise a RateLimitError when Twitter returns HTTP status 429#837
PrivacyDevel wants to merge 2 commits into
zedeus:masterfrom
PrivacyDevel:429

Conversation

@PrivacyDevel

Copy link
Copy Markdown
Contributor

No description provided.

Comment thread src/apiutils.nim
Comment on lines +70 to +71
if resp.status == $Http429:
raise rateLimitError()

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
if resp.status == $Http429:
raise rateLimitError()
if resp.status == $Http429:
raise rateLimitError()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants