aboutsummaryrefslogtreecommitdiff
path: root/source/feedgetter.py
diff options
context:
space:
mode:
Diffstat (limited to 'source/feedgetter.py')
-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