mirror of
https://github.com/samuelclay/NewsBlur.git
synced 2025-09-18 21:50:56 +00:00
Allowing feeds to fail fetch.
This commit is contained in:
parent
b2df3159a0
commit
a4efcde236
1 changed files with 4 additions and 0 deletions
|
@ -95,6 +95,10 @@ class FetchFeed:
|
|||
logging.debug(u' ***> [%-30s] ~FR%s, turning off headers.' %
|
||||
(self.feed.title[:30], e))
|
||||
self.fpf = feedparser.parse(address, agent=USER_AGENT)
|
||||
except (TypeError, ValueError, KeyError, EOFError), e:
|
||||
logging.debug(u' ***> [%-30s] ~FR%s fetch failed: %s.' %
|
||||
(self.feed.title[:30], e))
|
||||
return FEED_ERRHTTP, None
|
||||
|
||||
logging.debug(u' ---> [%-30s] ~FYFeed fetch in ~FM%.4ss' % (
|
||||
self.feed.title[:30], time.time() - start))
|
||||
|
|
Loading…
Add table
Reference in a new issue