We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
You can continue the conversation there. Go to discussion →
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hello,
When I try to retweet already retweeted, I want to catch this error.
So :
try: # retweet a tweet except tweepy.TweepyException as e: if e.api_codes == 327: # something
But I never enter in the conditionnal == 327 :/ It's an integer so I d'ont know how to catch it :/
Thank you for your help
The text was updated successfully, but these errors were encountered:
HTTPException.api_codes is a list of integers, so you can check for the specific error code within the list, e.g.: if 327 in e.api_codes.
HTTPException.api_codes
if 327 in e.api_codes
Sorry, something went wrong.
No branches or pull requests
Hello,
When I try to retweet already retweeted, I want to catch this error.
So :
But I never enter in the conditionnal == 327 :/
It's an integer so I d'ont know how to catch it :/
Thank you for your help
The text was updated successfully, but these errors were encountered: