excepting and logging Twitter Errors to prevent crashes

This commit is contained in:
b3yond 2018-09-24 23:02:10 +02:00
parent 234ed59049
commit 47a7452eb4

View file

@ -83,4 +83,5 @@ class TwitterBot(Bot):
except requests.exceptions.ConnectionError:
logger.error("Twitter API Error: Bad Connection",
exc_info=True)
# :todo implement rate limiting
except tweepy.error.TweepError:
logger.error("Twitter API Error", exc_info=True)