From 46fa724b0aec92c2538207b6f9cfe9b6e5b833cd Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Wed, 20 Jan 2010 21:05:26 -0700 Subject: [PATCH] Fix #4623 (WSJ News Download Fails with Included Recipe) --- resources/recipes/wsj.recipe | 2 ++ 1 file changed, 2 insertions(+) diff --git a/resources/recipes/wsj.recipe b/resources/recipes/wsj.recipe index 70c05b1ded..3b6f56e3a3 100644 --- a/resources/recipes/wsj.recipe +++ b/resources/recipes/wsj.recipe @@ -91,6 +91,8 @@ class WallStreetJournal(BasicNewsRecipe): url = url.partition('#')[0] desc = '' d = x.findNextSibling(True) + if d is None: + continue if d.get('class', None) == 'arialResize': desc = self.tag_to_string(d) desc = desc.partition(u'\u2022')[0]