forked from ticketfrei/ticketfrei
excepting and logging Twitter Errors to prevent crashes
This commit is contained in:
parent
8255b833fb
commit
2129306758
|
|
@ -83,4 +83,5 @@ class TwitterBot(Bot):
|
||||||
except requests.exceptions.ConnectionError:
|
except requests.exceptions.ConnectionError:
|
||||||
logger.error("Twitter API Error: Bad Connection",
|
logger.error("Twitter API Error: Bad Connection",
|
||||||
exc_info=True)
|
exc_info=True)
|
||||||
# :todo implement rate limiting
|
except tweepy.error.TweepError:
|
||||||
|
logger.error("Twitter API Error", exc_info=True)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue