From d8d8ce7e6231daf268b16caf9bf5404727b17560 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Wed, 9 May 2012 23:50:50 +0530 Subject: [PATCH] ... --- recipes/readitlater.recipe | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/recipes/readitlater.recipe b/recipes/readitlater.recipe index 92c9aaf9d6..2b6d389e5f 100644 --- a/recipes/readitlater.recipe +++ b/recipes/readitlater.recipe @@ -1,5 +1,5 @@ """ -Pocket Calibre Recipe v1.0 +Pocket Calibre Recipe v1.1 """ __license__ = 'GPL v3' __copyright__ = ''' @@ -73,6 +73,9 @@ class Pocket(BasicNewsRecipe): articles = [] soup = self.index_to_soup(feedurl) ritem = soup.find('ul', attrs={'id':'list'}) + if ritem is None: + self.log.exception("Page %s skipped: invalid HTML" % (feedtitle if feedtitle else feedurl)) + continue for item in reversed(ritem.findAll('li')): if articlesToGrab < 1: break @@ -94,7 +97,7 @@ class Pocket(BasicNewsRecipe): self.readList.append(readLink) totalfeeds.append((feedtitle, articles)) if len(self.readList) < self.minimum_articles: - raise Exception("Not enough articles in RIL! Change minimum_articles or add more.") + raise Exception("Not enough articles in Pocket! Change minimum_articles or add more articles.") return totalfeeds def mark_as_read(self, markList):