excepting and logging Twitter Errors to prevent crashes

master
b3yond 2018-09-24 23:02:10 +02:00
parent 8255b833fb
commit 2129306758
1 changed files with 2 additions and 1 deletions

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)