[Openlp-core] [Bug 1194730] Re: [support-system] Non existing chapters reseult in traceback when searching webbibles
** Changed in: openlp/trunk Milestone: 2.1.1 = None -- You received this bug notification because you are a member of OpenLP Core, which is subscribed to OpenLP. https://bugs.launchpad.net/bugs/1194730 Title: [support-system] Non existing chapters reseult in traceback when searching webbibles Status in OpenLP - Worship Presentation Software: Invalid Status in OpenLP 2.0 series: Fix Released Status in OpenLP trunk series: Invalid Bug description: Hello, http://support.openlp.org/issues/2006 PART 1 1) Register the New Living Translation from biblegateway. 2) Search 2 Samuel 25 Result: Traceback (most recent call last): File /home/andreas/Projects/OpenLP/trunk/openlp/plugins/bibles/lib/mediaitem.py, line 656, in onQuickSearchButton self.search_results = self.plugin.manager.get_verses(bible, text) File /home/andreas/Projects/OpenLP/trunk/openlp/plugins/bibles/lib/manager.py, line 300, in get_verses return self.db_cache[bible].get_verses(reflist, show_error) File /home/andreas/Projects/OpenLP/trunk/openlp/plugins/bibles/lib/http.py, line 608, in get_verses search_results = self.get_chapter(book, reference[1]) File /home/andreas/Projects/OpenLP/trunk/openlp/plugins/bibles/lib/http.py, line 636, in get_chapter return handler.get_bible_chapter(self.download_name, book, chapter) File /home/andreas/Projects/OpenLP/trunk/openlp/plugins/bibles/lib/http.py, line 245, in get_bible_chapter self._clean_soup(div) File /home/andreas/Projects/OpenLP/trunk/openlp/plugins/bibles/lib/http.py, line 127, in _clean_soup self._remove_elements(tag, 'sup', 'crossreference') File /home/andreas/Projects/OpenLP/trunk/openlp/plugins/bibles/lib/http.py, line 86, in _remove_elements all_tags = parent.find_all(tag, class_) AttributeError: 'NoneType' object has no attribute 'find_all' Expected: Nothing should happen, because this chapter does not exist. ===PART2=== 1) Search for 2 Samuel 1:88 Result: Traceback (most recent call last): File /home/andreas/Projects/OpenLP/trunk/openlp/plugins/bibles/lib/mediaitem.py, line 656, in onQuickSearchButton self.search_results = self.plugin.manager.get_verses(bible, text) File /home/andreas/Projects/OpenLP/trunk/openlp/plugins/bibles/lib/manager.py, line 300, in get_verses return self.db_cache[bible].get_verses(reflist, show_error) File /home/andreas/Projects/OpenLP/trunk/openlp/plugins/bibles/lib/http.py, line 608, in get_verses search_results = self.get_chapter(book, reference[1]) File /home/andreas/Projects/OpenLP/trunk/openlp/plugins/bibles/lib/http.py, line 636, in get_chapter return handler.get_bible_chapter(self.download_name, book, chapter) File /home/andreas/Projects/OpenLP/trunk/openlp/plugins/bibles/lib/http.py, line 252, in get_bible_chapter verse_list = self._extract_verses(span_list) File /home/andreas/Projects/OpenLP/trunk/openlp/plugins/bibles/lib/http.py, line 149, in _extract_verses c_verse, c_text = self._extract_verse(child) File /home/andreas/Projects/OpenLP/trunk/openlp/plugins/bibles/lib/http.py, line 101, in _extract_verse elif tag.get('class')[0] == versenum or tag.get('class')[0] == 'versenum mid-line': TypeError: 'NoneType' object has no attribute '__getitem__' Expected: Nothing, the verse does not exist. NOTE: The tracebacks are ONLY shown, when the chapter was not already downloaded! To manage notifications about this bug go to: https://bugs.launchpad.net/openlp/+bug/1194730/+subscriptions ___ Mailing list: https://launchpad.net/~openlp-core Post to : openlp-core@lists.launchpad.net Unsubscribe : https://launchpad.net/~openlp-core More help : https://help.launchpad.net/ListHelp
[Openlp-core] [Bug 1194730] Re: [support-system] Non existing chapters reseult in traceback when searching webbibles
** Changed in: openlp/2.0 Status: Fix Committed = Fix Released -- You received this bug notification because you are a member of OpenLP Core, which is subscribed to OpenLP. https://bugs.launchpad.net/bugs/1194730 Title: [support-system] Non existing chapters reseult in traceback when searching webbibles Status in OpenLP - Worship Presentation Software: Invalid Status in OpenLP 2.0 series: Fix Released Status in OpenLP trunk series: Invalid Bug description: Hello, http://support.openlp.org/issues/2006 PART 1 1) Register the New Living Translation from biblegateway. 2) Search 2 Samuel 25 Result: Traceback (most recent call last): File /home/andreas/Projects/OpenLP/trunk/openlp/plugins/bibles/lib/mediaitem.py, line 656, in onQuickSearchButton self.search_results = self.plugin.manager.get_verses(bible, text) File /home/andreas/Projects/OpenLP/trunk/openlp/plugins/bibles/lib/manager.py, line 300, in get_verses return self.db_cache[bible].get_verses(reflist, show_error) File /home/andreas/Projects/OpenLP/trunk/openlp/plugins/bibles/lib/http.py, line 608, in get_verses search_results = self.get_chapter(book, reference[1]) File /home/andreas/Projects/OpenLP/trunk/openlp/plugins/bibles/lib/http.py, line 636, in get_chapter return handler.get_bible_chapter(self.download_name, book, chapter) File /home/andreas/Projects/OpenLP/trunk/openlp/plugins/bibles/lib/http.py, line 245, in get_bible_chapter self._clean_soup(div) File /home/andreas/Projects/OpenLP/trunk/openlp/plugins/bibles/lib/http.py, line 127, in _clean_soup self._remove_elements(tag, 'sup', 'crossreference') File /home/andreas/Projects/OpenLP/trunk/openlp/plugins/bibles/lib/http.py, line 86, in _remove_elements all_tags = parent.find_all(tag, class_) AttributeError: 'NoneType' object has no attribute 'find_all' Expected: Nothing should happen, because this chapter does not exist. ===PART2=== 1) Search for 2 Samuel 1:88 Result: Traceback (most recent call last): File /home/andreas/Projects/OpenLP/trunk/openlp/plugins/bibles/lib/mediaitem.py, line 656, in onQuickSearchButton self.search_results = self.plugin.manager.get_verses(bible, text) File /home/andreas/Projects/OpenLP/trunk/openlp/plugins/bibles/lib/manager.py, line 300, in get_verses return self.db_cache[bible].get_verses(reflist, show_error) File /home/andreas/Projects/OpenLP/trunk/openlp/plugins/bibles/lib/http.py, line 608, in get_verses search_results = self.get_chapter(book, reference[1]) File /home/andreas/Projects/OpenLP/trunk/openlp/plugins/bibles/lib/http.py, line 636, in get_chapter return handler.get_bible_chapter(self.download_name, book, chapter) File /home/andreas/Projects/OpenLP/trunk/openlp/plugins/bibles/lib/http.py, line 252, in get_bible_chapter verse_list = self._extract_verses(span_list) File /home/andreas/Projects/OpenLP/trunk/openlp/plugins/bibles/lib/http.py, line 149, in _extract_verses c_verse, c_text = self._extract_verse(child) File /home/andreas/Projects/OpenLP/trunk/openlp/plugins/bibles/lib/http.py, line 101, in _extract_verse elif tag.get('class')[0] == versenum or tag.get('class')[0] == 'versenum mid-line': TypeError: 'NoneType' object has no attribute '__getitem__' Expected: Nothing, the verse does not exist. NOTE: The tracebacks are ONLY shown, when the chapter was not already downloaded! To manage notifications about this bug go to: https://bugs.launchpad.net/openlp/+bug/1194730/+subscriptions ___ Mailing list: https://launchpad.net/~openlp-core Post to : openlp-core@lists.launchpad.net Unsubscribe : https://launchpad.net/~openlp-core More help : https://help.launchpad.net/ListHelp
[Openlp-core] [Bug 1194730] Re: [support-system] Non existing chapters reseult in traceback when searching webbibles
** Changed in: openlp/2.0 Status: In Progress = Fix Committed -- You received this bug notification because you are a member of OpenLP Core, which is subscribed to OpenLP. https://bugs.launchpad.net/bugs/1194730 Title: [support-system] Non existing chapters reseult in traceback when searching webbibles Status in OpenLP - Worship Presentation Software: Invalid Status in OpenLP 2.0 series: Fix Committed Status in OpenLP trunk series: Invalid Bug description: Hello, http://support.openlp.org/issues/2006 PART 1 1) Register the New Living Translation from biblegateway. 2) Search 2 Samuel 25 Result: Traceback (most recent call last): File /home/andreas/Projects/OpenLP/trunk/openlp/plugins/bibles/lib/mediaitem.py, line 656, in onQuickSearchButton self.search_results = self.plugin.manager.get_verses(bible, text) File /home/andreas/Projects/OpenLP/trunk/openlp/plugins/bibles/lib/manager.py, line 300, in get_verses return self.db_cache[bible].get_verses(reflist, show_error) File /home/andreas/Projects/OpenLP/trunk/openlp/plugins/bibles/lib/http.py, line 608, in get_verses search_results = self.get_chapter(book, reference[1]) File /home/andreas/Projects/OpenLP/trunk/openlp/plugins/bibles/lib/http.py, line 636, in get_chapter return handler.get_bible_chapter(self.download_name, book, chapter) File /home/andreas/Projects/OpenLP/trunk/openlp/plugins/bibles/lib/http.py, line 245, in get_bible_chapter self._clean_soup(div) File /home/andreas/Projects/OpenLP/trunk/openlp/plugins/bibles/lib/http.py, line 127, in _clean_soup self._remove_elements(tag, 'sup', 'crossreference') File /home/andreas/Projects/OpenLP/trunk/openlp/plugins/bibles/lib/http.py, line 86, in _remove_elements all_tags = parent.find_all(tag, class_) AttributeError: 'NoneType' object has no attribute 'find_all' Expected: Nothing should happen, because this chapter does not exist. ===PART2=== 1) Search for 2 Samuel 1:88 Result: Traceback (most recent call last): File /home/andreas/Projects/OpenLP/trunk/openlp/plugins/bibles/lib/mediaitem.py, line 656, in onQuickSearchButton self.search_results = self.plugin.manager.get_verses(bible, text) File /home/andreas/Projects/OpenLP/trunk/openlp/plugins/bibles/lib/manager.py, line 300, in get_verses return self.db_cache[bible].get_verses(reflist, show_error) File /home/andreas/Projects/OpenLP/trunk/openlp/plugins/bibles/lib/http.py, line 608, in get_verses search_results = self.get_chapter(book, reference[1]) File /home/andreas/Projects/OpenLP/trunk/openlp/plugins/bibles/lib/http.py, line 636, in get_chapter return handler.get_bible_chapter(self.download_name, book, chapter) File /home/andreas/Projects/OpenLP/trunk/openlp/plugins/bibles/lib/http.py, line 252, in get_bible_chapter verse_list = self._extract_verses(span_list) File /home/andreas/Projects/OpenLP/trunk/openlp/plugins/bibles/lib/http.py, line 149, in _extract_verses c_verse, c_text = self._extract_verse(child) File /home/andreas/Projects/OpenLP/trunk/openlp/plugins/bibles/lib/http.py, line 101, in _extract_verse elif tag.get('class')[0] == versenum or tag.get('class')[0] == 'versenum mid-line': TypeError: 'NoneType' object has no attribute '__getitem__' Expected: Nothing, the verse does not exist. NOTE: The tracebacks are ONLY shown, when the chapter was not already downloaded! To manage notifications about this bug go to: https://bugs.launchpad.net/openlp/+bug/1194730/+subscriptions ___ Mailing list: https://launchpad.net/~openlp-core Post to : openlp-core@lists.launchpad.net Unsubscribe : https://launchpad.net/~openlp-core More help : https://help.launchpad.net/ListHelp
[Openlp-core] [Bug 1194730] Re: [support-system] Non existing chapters reseult in traceback when searching webbibles
I can confirm this with 2.0 Trunk ** Changed in: openlp/2.0 Status: Invalid = Confirmed -- You received this bug notification because you are a member of OpenLP Core, which is subscribed to OpenLP. https://bugs.launchpad.net/bugs/1194730 Title: [support-system] Non existing chapters reseult in traceback when searching webbibles Status in OpenLP - Worship Presentation Software: Confirmed Status in OpenLP 2.0 series: Confirmed Status in OpenLP trunk series: Confirmed Bug description: Hello, http://support.openlp.org/issues/2006 PART 1 1) Register the New Living Translation from biblegateway. 2) Search 2 Samuel 25 Result: Traceback (most recent call last): File /home/andreas/Projects/OpenLP/trunk/openlp/plugins/bibles/lib/mediaitem.py, line 656, in onQuickSearchButton self.search_results = self.plugin.manager.get_verses(bible, text) File /home/andreas/Projects/OpenLP/trunk/openlp/plugins/bibles/lib/manager.py, line 300, in get_verses return self.db_cache[bible].get_verses(reflist, show_error) File /home/andreas/Projects/OpenLP/trunk/openlp/plugins/bibles/lib/http.py, line 608, in get_verses search_results = self.get_chapter(book, reference[1]) File /home/andreas/Projects/OpenLP/trunk/openlp/plugins/bibles/lib/http.py, line 636, in get_chapter return handler.get_bible_chapter(self.download_name, book, chapter) File /home/andreas/Projects/OpenLP/trunk/openlp/plugins/bibles/lib/http.py, line 245, in get_bible_chapter self._clean_soup(div) File /home/andreas/Projects/OpenLP/trunk/openlp/plugins/bibles/lib/http.py, line 127, in _clean_soup self._remove_elements(tag, 'sup', 'crossreference') File /home/andreas/Projects/OpenLP/trunk/openlp/plugins/bibles/lib/http.py, line 86, in _remove_elements all_tags = parent.find_all(tag, class_) AttributeError: 'NoneType' object has no attribute 'find_all' Expected: Nothing should happen, because this chapter does not exist. ===PART2=== 1) Search for 2 Samuel 1:88 Result: Traceback (most recent call last): File /home/andreas/Projects/OpenLP/trunk/openlp/plugins/bibles/lib/mediaitem.py, line 656, in onQuickSearchButton self.search_results = self.plugin.manager.get_verses(bible, text) File /home/andreas/Projects/OpenLP/trunk/openlp/plugins/bibles/lib/manager.py, line 300, in get_verses return self.db_cache[bible].get_verses(reflist, show_error) File /home/andreas/Projects/OpenLP/trunk/openlp/plugins/bibles/lib/http.py, line 608, in get_verses search_results = self.get_chapter(book, reference[1]) File /home/andreas/Projects/OpenLP/trunk/openlp/plugins/bibles/lib/http.py, line 636, in get_chapter return handler.get_bible_chapter(self.download_name, book, chapter) File /home/andreas/Projects/OpenLP/trunk/openlp/plugins/bibles/lib/http.py, line 252, in get_bible_chapter verse_list = self._extract_verses(span_list) File /home/andreas/Projects/OpenLP/trunk/openlp/plugins/bibles/lib/http.py, line 149, in _extract_verses c_verse, c_text = self._extract_verse(child) File /home/andreas/Projects/OpenLP/trunk/openlp/plugins/bibles/lib/http.py, line 101, in _extract_verse elif tag.get('class')[0] == versenum or tag.get('class')[0] == 'versenum mid-line': TypeError: 'NoneType' object has no attribute '__getitem__' Expected: Nothing, the verse does not exist. NOTE: The tracebacks are ONLY shown, when the chapter was not already downloaded! To manage notifications about this bug go to: https://bugs.launchpad.net/openlp/+bug/1194730/+subscriptions ___ Mailing list: https://launchpad.net/~openlp-core Post to : openlp-core@lists.launchpad.net Unsubscribe : https://launchpad.net/~openlp-core More help : https://help.launchpad.net/ListHelp
[Openlp-core] [Bug 1194730] Re: [support-system] Non existing chapters reseult in traceback when searching webbibles
Ok, So I can only confirm part 1. Part 2 does not seem to be an issue in 2.0 or trunk! ** Changed in: openlp/2.0 Assignee: (unassigned) = Phill (phill-ridout) ** Changed in: openlp/trunk Assignee: (unassigned) = Phill (phill-ridout) ** Changed in: openlp/2.0 Status: Confirmed = In Progress ** Changed in: openlp/trunk Status: Confirmed = In Progress -- You received this bug notification because you are a member of OpenLP Core, which is subscribed to OpenLP. https://bugs.launchpad.net/bugs/1194730 Title: [support-system] Non existing chapters reseult in traceback when searching webbibles Status in OpenLP - Worship Presentation Software: In Progress Status in OpenLP 2.0 series: In Progress Status in OpenLP trunk series: In Progress Bug description: Hello, http://support.openlp.org/issues/2006 PART 1 1) Register the New Living Translation from biblegateway. 2) Search 2 Samuel 25 Result: Traceback (most recent call last): File /home/andreas/Projects/OpenLP/trunk/openlp/plugins/bibles/lib/mediaitem.py, line 656, in onQuickSearchButton self.search_results = self.plugin.manager.get_verses(bible, text) File /home/andreas/Projects/OpenLP/trunk/openlp/plugins/bibles/lib/manager.py, line 300, in get_verses return self.db_cache[bible].get_verses(reflist, show_error) File /home/andreas/Projects/OpenLP/trunk/openlp/plugins/bibles/lib/http.py, line 608, in get_verses search_results = self.get_chapter(book, reference[1]) File /home/andreas/Projects/OpenLP/trunk/openlp/plugins/bibles/lib/http.py, line 636, in get_chapter return handler.get_bible_chapter(self.download_name, book, chapter) File /home/andreas/Projects/OpenLP/trunk/openlp/plugins/bibles/lib/http.py, line 245, in get_bible_chapter self._clean_soup(div) File /home/andreas/Projects/OpenLP/trunk/openlp/plugins/bibles/lib/http.py, line 127, in _clean_soup self._remove_elements(tag, 'sup', 'crossreference') File /home/andreas/Projects/OpenLP/trunk/openlp/plugins/bibles/lib/http.py, line 86, in _remove_elements all_tags = parent.find_all(tag, class_) AttributeError: 'NoneType' object has no attribute 'find_all' Expected: Nothing should happen, because this chapter does not exist. ===PART2=== 1) Search for 2 Samuel 1:88 Result: Traceback (most recent call last): File /home/andreas/Projects/OpenLP/trunk/openlp/plugins/bibles/lib/mediaitem.py, line 656, in onQuickSearchButton self.search_results = self.plugin.manager.get_verses(bible, text) File /home/andreas/Projects/OpenLP/trunk/openlp/plugins/bibles/lib/manager.py, line 300, in get_verses return self.db_cache[bible].get_verses(reflist, show_error) File /home/andreas/Projects/OpenLP/trunk/openlp/plugins/bibles/lib/http.py, line 608, in get_verses search_results = self.get_chapter(book, reference[1]) File /home/andreas/Projects/OpenLP/trunk/openlp/plugins/bibles/lib/http.py, line 636, in get_chapter return handler.get_bible_chapter(self.download_name, book, chapter) File /home/andreas/Projects/OpenLP/trunk/openlp/plugins/bibles/lib/http.py, line 252, in get_bible_chapter verse_list = self._extract_verses(span_list) File /home/andreas/Projects/OpenLP/trunk/openlp/plugins/bibles/lib/http.py, line 149, in _extract_verses c_verse, c_text = self._extract_verse(child) File /home/andreas/Projects/OpenLP/trunk/openlp/plugins/bibles/lib/http.py, line 101, in _extract_verse elif tag.get('class')[0] == versenum or tag.get('class')[0] == 'versenum mid-line': TypeError: 'NoneType' object has no attribute '__getitem__' Expected: Nothing, the verse does not exist. NOTE: The tracebacks are ONLY shown, when the chapter was not already downloaded! To manage notifications about this bug go to: https://bugs.launchpad.net/openlp/+bug/1194730/+subscriptions ___ Mailing list: https://launchpad.net/~openlp-core Post to : openlp-core@lists.launchpad.net Unsubscribe : https://launchpad.net/~openlp-core More help : https://help.launchpad.net/ListHelp
[Openlp-core] [Bug 1194730] Re: [support-system] Non existing chapters reseult in traceback when searching webbibles
After many repeat attempts I cannot trigger either parts in trunk ** Changed in: openlp/trunk Status: In Progress = Invalid ** Branch linked: lp:~phill-ridout/openlp/1194730_2.0 -- You received this bug notification because you are a member of OpenLP Core, which is subscribed to OpenLP. https://bugs.launchpad.net/bugs/1194730 Title: [support-system] Non existing chapters reseult in traceback when searching webbibles Status in OpenLP - Worship Presentation Software: Invalid Status in OpenLP 2.0 series: In Progress Status in OpenLP trunk series: Invalid Bug description: Hello, http://support.openlp.org/issues/2006 PART 1 1) Register the New Living Translation from biblegateway. 2) Search 2 Samuel 25 Result: Traceback (most recent call last): File /home/andreas/Projects/OpenLP/trunk/openlp/plugins/bibles/lib/mediaitem.py, line 656, in onQuickSearchButton self.search_results = self.plugin.manager.get_verses(bible, text) File /home/andreas/Projects/OpenLP/trunk/openlp/plugins/bibles/lib/manager.py, line 300, in get_verses return self.db_cache[bible].get_verses(reflist, show_error) File /home/andreas/Projects/OpenLP/trunk/openlp/plugins/bibles/lib/http.py, line 608, in get_verses search_results = self.get_chapter(book, reference[1]) File /home/andreas/Projects/OpenLP/trunk/openlp/plugins/bibles/lib/http.py, line 636, in get_chapter return handler.get_bible_chapter(self.download_name, book, chapter) File /home/andreas/Projects/OpenLP/trunk/openlp/plugins/bibles/lib/http.py, line 245, in get_bible_chapter self._clean_soup(div) File /home/andreas/Projects/OpenLP/trunk/openlp/plugins/bibles/lib/http.py, line 127, in _clean_soup self._remove_elements(tag, 'sup', 'crossreference') File /home/andreas/Projects/OpenLP/trunk/openlp/plugins/bibles/lib/http.py, line 86, in _remove_elements all_tags = parent.find_all(tag, class_) AttributeError: 'NoneType' object has no attribute 'find_all' Expected: Nothing should happen, because this chapter does not exist. ===PART2=== 1) Search for 2 Samuel 1:88 Result: Traceback (most recent call last): File /home/andreas/Projects/OpenLP/trunk/openlp/plugins/bibles/lib/mediaitem.py, line 656, in onQuickSearchButton self.search_results = self.plugin.manager.get_verses(bible, text) File /home/andreas/Projects/OpenLP/trunk/openlp/plugins/bibles/lib/manager.py, line 300, in get_verses return self.db_cache[bible].get_verses(reflist, show_error) File /home/andreas/Projects/OpenLP/trunk/openlp/plugins/bibles/lib/http.py, line 608, in get_verses search_results = self.get_chapter(book, reference[1]) File /home/andreas/Projects/OpenLP/trunk/openlp/plugins/bibles/lib/http.py, line 636, in get_chapter return handler.get_bible_chapter(self.download_name, book, chapter) File /home/andreas/Projects/OpenLP/trunk/openlp/plugins/bibles/lib/http.py, line 252, in get_bible_chapter verse_list = self._extract_verses(span_list) File /home/andreas/Projects/OpenLP/trunk/openlp/plugins/bibles/lib/http.py, line 149, in _extract_verses c_verse, c_text = self._extract_verse(child) File /home/andreas/Projects/OpenLP/trunk/openlp/plugins/bibles/lib/http.py, line 101, in _extract_verse elif tag.get('class')[0] == versenum or tag.get('class')[0] == 'versenum mid-line': TypeError: 'NoneType' object has no attribute '__getitem__' Expected: Nothing, the verse does not exist. NOTE: The tracebacks are ONLY shown, when the chapter was not already downloaded! To manage notifications about this bug go to: https://bugs.launchpad.net/openlp/+bug/1194730/+subscriptions ___ Mailing list: https://launchpad.net/~openlp-core Post to : openlp-core@lists.launchpad.net Unsubscribe : https://launchpad.net/~openlp-core More help : https://help.launchpad.net/ListHelp
[Openlp-core] [Bug 1194730] Re: [support-system] Non existing chapters reseult in traceback when searching webbibles
** Changed in: openlp/2.0 Status: Confirmed = Invalid ** Changed in: openlp/trunk Importance: Medium = High ** Tags added: regression -- You received this bug notification because you are a member of OpenLP Core, which is subscribed to OpenLP. https://bugs.launchpad.net/bugs/1194730 Title: [support-system] Non existing chapters reseult in traceback when searching webbibles Status in OpenLP - Worship Presentation Software: Confirmed Status in OpenLP 2.0 series: Invalid Status in OpenLP trunk series: Confirmed Bug description: Hello, http://support.openlp.org/issues/2006 PART 1 1) Register the New Living Translation from biblegateway. 2) Search 2 Samuel 25 Result: Traceback (most recent call last): File /home/andreas/Projects/OpenLP/trunk/openlp/plugins/bibles/lib/mediaitem.py, line 656, in onQuickSearchButton self.search_results = self.plugin.manager.get_verses(bible, text) File /home/andreas/Projects/OpenLP/trunk/openlp/plugins/bibles/lib/manager.py, line 300, in get_verses return self.db_cache[bible].get_verses(reflist, show_error) File /home/andreas/Projects/OpenLP/trunk/openlp/plugins/bibles/lib/http.py, line 608, in get_verses search_results = self.get_chapter(book, reference[1]) File /home/andreas/Projects/OpenLP/trunk/openlp/plugins/bibles/lib/http.py, line 636, in get_chapter return handler.get_bible_chapter(self.download_name, book, chapter) File /home/andreas/Projects/OpenLP/trunk/openlp/plugins/bibles/lib/http.py, line 245, in get_bible_chapter self._clean_soup(div) File /home/andreas/Projects/OpenLP/trunk/openlp/plugins/bibles/lib/http.py, line 127, in _clean_soup self._remove_elements(tag, 'sup', 'crossreference') File /home/andreas/Projects/OpenLP/trunk/openlp/plugins/bibles/lib/http.py, line 86, in _remove_elements all_tags = parent.find_all(tag, class_) AttributeError: 'NoneType' object has no attribute 'find_all' Expected: Nothing should happen, because this chapter does not exist. ===PART2=== 1) Search for 2 Samuel 1:88 Result: Traceback (most recent call last): File /home/andreas/Projects/OpenLP/trunk/openlp/plugins/bibles/lib/mediaitem.py, line 656, in onQuickSearchButton self.search_results = self.plugin.manager.get_verses(bible, text) File /home/andreas/Projects/OpenLP/trunk/openlp/plugins/bibles/lib/manager.py, line 300, in get_verses return self.db_cache[bible].get_verses(reflist, show_error) File /home/andreas/Projects/OpenLP/trunk/openlp/plugins/bibles/lib/http.py, line 608, in get_verses search_results = self.get_chapter(book, reference[1]) File /home/andreas/Projects/OpenLP/trunk/openlp/plugins/bibles/lib/http.py, line 636, in get_chapter return handler.get_bible_chapter(self.download_name, book, chapter) File /home/andreas/Projects/OpenLP/trunk/openlp/plugins/bibles/lib/http.py, line 252, in get_bible_chapter verse_list = self._extract_verses(span_list) File /home/andreas/Projects/OpenLP/trunk/openlp/plugins/bibles/lib/http.py, line 149, in _extract_verses c_verse, c_text = self._extract_verse(child) File /home/andreas/Projects/OpenLP/trunk/openlp/plugins/bibles/lib/http.py, line 101, in _extract_verse elif tag.get('class')[0] == versenum or tag.get('class')[0] == 'versenum mid-line': TypeError: 'NoneType' object has no attribute '__getitem__' Expected: Nothing, the verse does not exist. NOTE: The tracebacks are ONLY shown, when the chapter was not already downloaded! To manage notifications about this bug go to: https://bugs.launchpad.net/openlp/+bug/1194730/+subscriptions ___ Mailing list: https://launchpad.net/~openlp-core Post to : openlp-core@lists.launchpad.net Unsubscribe : https://launchpad.net/~openlp-core More help : https://help.launchpad.net/ListHelp