Adds retry_after attribute to TwythonRateLimitError #304
No reviewers
Labels
No labels
Bug
Enhancement
Feature Suggestion
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: code/twython#304
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "master"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
It is awesome that RateLimitErrors are bubble'd up through this library, great work! Do you believe it would be useful to expose the retry_after value in the
TwythonRateLimitErrorraised?In using twython, I found myself wishing I could retrieve this value in the exception, so I created this quick patch. Please give me feedback or feel free to ignore this, if you do not believe it is useful for others :-)
Thanks,
Cory
P.S. I was not able to run the test suite, as I do not have all of the necessary config vars set, testing it locally, it seemed to work okay. (Famous last words)
I'll check this out tomorrow! Sounds like a good idea!—
Sent from Mailbox for iPhone
On Sun, Jan 12, 2014 at 6:28 PM, Cory Dolphin notifications@github.com
wrote:
You can always update the
config.pyfile intestswith you credentials. But we're in the midst of rewriting tests anyways, so I'll let it slide. Thanks for the contribution!👍 thanks