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):