excepted TweepError that was raised without an explanation further than 503

master
b3yond 2018-01-18 21:48:36 +01:00
parent 0dc17d65f0
commit 45d5166499
1 changed files with 2 additions and 0 deletions

View File

@ -126,6 +126,8 @@ class RetweetBot(object):
except requests.exceptions.ConnectionError:
logger.error("Twitter API Error: Bad Connection", exc_info=True)
self.waitcounter += 10
except tweepy.TweepError:
logger.error("Twitter API Error: General Error", exc_info=True)
return []
def repost(self, status):