aboutsummaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorCédric Bonhomme <kimble.mandel@gmail.com>2013-09-10 19:29:56 +0200
committerCédric Bonhomme <kimble.mandel@gmail.com>2013-09-10 19:29:56 +0200
commit12a7c95097b2cb1e485582d5c48a7e63685065ff (patch)
tree7fc736c2e4ca498d1b729e6f24477b2bc23dd868 /source
parentImproved /management template. (diff)
downloadnewspipe-12a7c95097b2cb1e485582d5c48a7e63685065ff.tar.gz
newspipe-12a7c95097b2cb1e485582d5c48a7e63685065ff.tar.bz2
newspipe-12a7c95097b2cb1e485582d5c48a7e63685065ff.zip
Bug fix in feedgetter.py when a fix does not exist.
Diffstat (limited to 'source')
-rwxr-xr-xsource/feedgetter.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/source/feedgetter.py b/source/feedgetter.py
index d8a053b0..88b1c228 100755
--- a/source/feedgetter.py
+++ b/source/feedgetter.py
@@ -144,6 +144,7 @@ class FeedGetter(object):
"mail": False \
}
self.articles.add_collection(collection_dic)
+ feed = self.articles.get_feed(feed_id)
articles = []
for article in a_feed['entries']:
@@ -188,7 +189,12 @@ class FeedGetter(object):
if self.articles.get_articles(feed_id, article_id) == []:
# add the article to the Whoosh index
- search.add_to_index([article], feed)
+ try:
+ search.add_to_index([article], feed)
+ except:
+ print("Whoosh error.")
+ pyaggr3g470r_log.error("Whoosh error.")
+ continue
if conf.MAIL_ENABLED and feed["mail"]:
# if subscribed to the feed
bgstack15