From 0398ecd9d3640f0e6b4f2d77be2c6c54247a0a61 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sun, 14 Feb 2016 09:44:15 +0530 Subject: [PATCH] Update New York Times Book Review --- recipes/nytimesbook.recipe | 2 ++ 1 file changed, 2 insertions(+) diff --git a/recipes/nytimesbook.recipe b/recipes/nytimesbook.recipe index 1ffae51e4c..63f1da9532 100644 --- a/recipes/nytimesbook.recipe +++ b/recipes/nytimesbook.recipe @@ -38,6 +38,8 @@ class NewYorkTimesBookReview(BasicNewsRecipe): self.log('\t', desc) for li in soup.find(id='latest-panel').find('ol').findAll('li'): a = li.find('a', attrs={'class':'story-link'}, href=True) + if a is None: + continue url = a['href'] m = a.find(attrs={'class':'story-meta'}) title = self.tag_to_string(m.find('h2'))