diff options
author | Cédric Bonhomme <kimble.mandel@gmail.com> | 2013-09-10 19:29:56 +0200 |
---|---|---|
committer | Cédric Bonhomme <kimble.mandel@gmail.com> | 2013-09-10 19:29:56 +0200 |
commit | 12a7c95097b2cb1e485582d5c48a7e63685065ff (patch) | |
tree | 7fc736c2e4ca498d1b729e6f24477b2bc23dd868 | |
parent | Improved /management template. (diff) | |
download | newspipe-12a7c95097b2cb1e485582d5c48a7e63685065ff.tar.gz newspipe-12a7c95097b2cb1e485582d5c48a7e63685065ff.tar.bz2 newspipe-12a7c95097b2cb1e485582d5c48a7e63685065ff.zip |
Bug fix in feedgetter.py when a fix does not exist.
-rwxr-xr-x | source/feedgetter.py | 8 |
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 |