From 43fef6cc2bfafb7ce53c34b90bd03d2c5b30b5ba Mon Sep 17 00:00:00 2001 From: Philip Ridout Date: Fri, 2 Aug 2013 22:51:39 +0100 Subject: [PATCH] fixed 1184869 by checking that the anchor tag actually has some text --- openlp/plugins/bibles/lib/http.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openlp/plugins/bibles/lib/http.py b/openlp/plugins/bibles/lib/http.py index de48b2617..cb410dbaa 100644 --- a/openlp/plugins/bibles/lib/http.py +++ b/openlp/plugins/bibles/lib/http.py @@ -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): """