diff options
author | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2014-11-08 22:48:21 +0100 |
---|---|---|
committer | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2014-11-08 22:48:21 +0100 |
commit | deade3f7e97921ddc7b5d619b2376083525f717c (patch) | |
tree | e935a01c075264160c52f680ab708f009c81079d /pyaggr3g470r | |
parent | Updated translations. (diff) | |
download | newspipe-deade3f7e97921ddc7b5d619b2376083525f717c.tar.gz newspipe-deade3f7e97921ddc7b5d619b2376083525f717c.tar.bz2 newspipe-deade3f7e97921ddc7b5d619b2376083525f717c.zip |
Log 'bozo' exception.
Diffstat (limited to 'pyaggr3g470r')
-rw-r--r-- | pyaggr3g470r/crawler.py | 2 | ||||
-rw-r--r-- | pyaggr3g470r/views.py | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/pyaggr3g470r/crawler.py b/pyaggr3g470r/crawler.py index d65d03bd..b933f6aa 100644 --- a/pyaggr3g470r/crawler.py +++ b/pyaggr3g470r/crawler.py @@ -128,6 +128,8 @@ class FeedGetter(object): """ logger.info("Fetching the feed: " + feed.title) a_feed = feedparser.parse(feed.link, handlers=[self.proxy]) + if a_feed['bozo'] == 1: + logger.error(a_feed['bozo_exception']) if a_feed['entries'] == []: return diff --git a/pyaggr3g470r/views.py b/pyaggr3g470r/views.py index 63026f41..ffc7a53b 100644 --- a/pyaggr3g470r/views.py +++ b/pyaggr3g470r/views.py @@ -267,7 +267,7 @@ def fetch(feed_id=None): Triggers the download of news. News are downloaded in a separated process, mandatory for Heroku. """ - utils.fetch(g.user.email, None) + utils.fetch(g.user.email, feed_id) flash(gettext("Downloading articles..."), 'info') return redirect(redirect_url()) |