capital-G / sc-twitter-bot

Supercollider Twitter Bot
https://twitter.com/SC2Sbot
GNU General Public License v2.0
3 stars 0 forks source link

Do not crash on Twitter API error #1

Closed capital-G closed 3 years ago

capital-G commented 3 years ago
bot_1  | Traceback (most recent call last):
bot_1  |   File "/home/sc-twitter-bot/start_bot.py", line 23, in <module>
bot_1  |     twitter_bot.look_for_mentions()
bot_1  |   File "/home/sc-twitter-bot/sc_twitter_bot/sc_twitter_bot.py", line 108, in look_for_mentions
bot_1  |     new_mentions = self.api.mentions_timeline(tweet_mode='extended')
bot_1  |   File "/usr/local/lib/python3.8/site-packages/tweepy/binder.py", line 253, in _call
bot_1  |     return method.execute()
bot_1  |   File "/usr/local/lib/python3.8/site-packages/tweepy/binder.py", line 234, in execute
bot_1  |     raise TweepError(error_msg, resp, api_code=api_error_code)
bot_1  | tweepy.error.TweepError: [{'message': 'Over capacity', 'code': 130}]
capital-G commented 3 years ago

fixed in 896c835