aboutsummaryrefslogtreecommitdiff
path: root/pyaggr3g470r
diff options
context:
space:
mode:
authorCédric Bonhomme <cedric@cedricbonhomme.org>2014-11-08 22:48:21 +0100
committerCédric Bonhomme <cedric@cedricbonhomme.org>2014-11-08 22:48:21 +0100
commitdeade3f7e97921ddc7b5d619b2376083525f717c (patch)
treee935a01c075264160c52f680ab708f009c81079d /pyaggr3g470r
parentUpdated translations. (diff)
downloadnewspipe-deade3f7e97921ddc7b5d619b2376083525f717c.tar.gz
newspipe-deade3f7e97921ddc7b5d619b2376083525f717c.tar.bz2
newspipe-deade3f7e97921ddc7b5d619b2376083525f717c.zip
Log 'bozo' exception.
Diffstat (limited to 'pyaggr3g470r')
-rw-r--r--pyaggr3g470r/crawler.py2
-rw-r--r--pyaggr3g470r/views.py2
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())
bgstack15