From 47a7452eb4544154a385cc2484b8fa4d7ca8c5c9 Mon Sep 17 00:00:00 2001 From: b3yond Date: Mon, 24 Sep 2018 23:02:10 +0200 Subject: [PATCH] excepting and logging Twitter Errors to prevent crashes --- active_bots/twitterbot.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/active_bots/twitterbot.py b/active_bots/twitterbot.py index 336737b..485f5c1 100755 --- a/active_bots/twitterbot.py +++ b/active_bots/twitterbot.py @@ -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)