Fix bug #1184869: Ensure that there is text in the anchor tag

bzr-revno: 2156
Fixes: https://launchpad.net/bugs/1184869
This commit is contained in:
Philip Ridout 2013-08-20 21:56:17 +02:00 committed by Raoul Snyman
commit 82a7641302

View File

@ -377,6 +377,7 @@ class BSExtract(object):
content = content.findAll(u'li')
return [
book.contents[0].contents[0] for book in content
if len(book.contents[0].contents)
]