Fix #4623 (WSJ News Download Fails with Included Recipe)

This commit is contained in:
Kovid Goyal 2010-01-20 21:05:26 -07:00
parent 5132aba5f0
commit 46fa724b0a

View File

@ -91,6 +91,8 @@ class WallStreetJournal(BasicNewsRecipe):
url = url.partition('#')[0] url = url.partition('#')[0]
desc = '' desc = ''
d = x.findNextSibling(True) d = x.findNextSibling(True)
if d is None:
continue
if d.get('class', None) == 'arialResize': if d.get('class', None) == 'arialResize':
desc = self.tag_to_string(d) desc = self.tag_to_string(d)
desc = desc.partition(u'\u2022')[0] desc = desc.partition(u'\u2022')[0]