mirror of
https://github.com/samuelclay/NewsBlur.git
synced 2025-04-13 09:42:01 +00:00
Better handling of Twitter being down (and returning a 503).
This commit is contained in:
parent
0011249cad
commit
71eae2c640
1 changed files with 5 additions and 0 deletions
|
@ -170,6 +170,11 @@ class TwitterFetcher:
|
|||
(self.feed.log_title[:30], self.address, e))
|
||||
self.feed.save_feed_history(460, "Twitter Error: Over capacity")
|
||||
return
|
||||
elif '503' in message:
|
||||
logging.debug(' ***> [%-30s] ~FRTwitter throwing a 503, ignoring... %s: %s' %
|
||||
(self.feed.log_title[:30], self.address, e))
|
||||
self.feed.save_feed_history(463, "Twitter Error: Twitter's down")
|
||||
return
|
||||
else:
|
||||
raise e
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue