From a37ae5880f9c388f40da9e7381c0f5358e37eba0 Mon Sep 17 00:00:00 2001 From: Philip Ridout Date: Fri, 2 Aug 2013 22:15:52 +0100 Subject: [PATCH 1/2] Fixes #1184869 Ensures that there is text in the anchor tag --- openlp/plugins/bibles/lib/http.py | 1 + 1 file changed, 1 insertion(+) diff --git a/openlp/plugins/bibles/lib/http.py b/openlp/plugins/bibles/lib/http.py index 214c427af..008857802 100644 --- a/openlp/plugins/bibles/lib/http.py +++ b/openlp/plugins/bibles/lib/http.py @@ -375,6 +375,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) ] From bc214ac9906f9bfdfc715589d93b7a8afbf4ae26 Mon Sep 17 00:00:00 2001 From: Philip Ridout Date: Mon, 12 Aug 2013 19:19:57 +0100 Subject: [PATCH 2/2] Indented line to show continuation --- 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 008857802..99b85406f 100644 --- a/openlp/plugins/bibles/lib/http.py +++ b/openlp/plugins/bibles/lib/http.py @@ -375,7 +375,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) + if len(book.contents[0].contents) ]