forked from ticketfrei/ticketfrei
excepting and logging Twitter Errors to prevent crashes
This commit is contained in:
parent
234ed59049
commit
47a7452eb4
|
@ -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