From 12a7c95097b2cb1e485582d5c48a7e63685065ff Mon Sep 17 00:00:00 2001 From: Cédric Bonhomme Date: Tue, 10 Sep 2013 19:29:56 +0200 Subject: Bug fix in feedgetter.py when a fix does not exist. --- source/feedgetter.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'source') 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 -- cgit