fixed 1184869 by checking that the anchor tag actually has some text

This commit is contained in:
Philip Ridout 2013-08-02 22:51:39 +01:00
parent 97de1555fe
commit 43fef6cc2b
1 changed files with 1 additions and 1 deletions

View File

@ -378,7 +378,7 @@ class BSExtract(object):
send_error_message(u'parse')
return None
content = content.find_all(u'li')
return [book.contents[0].contents[0] for book in content]
return [book.contents[0].contents[0] for book in content if len(book.contents[0].contents)]
def _get_application(self):
"""