[support-system] Non existing chapters reseult in traceback when searching webbibles
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
OpenLP | Status tracked in Trunk | |||||
2.0 |
Fix Released
|
High
|
Phill | |||
Trunk |
Invalid
|
High
|
Phill |
Bug Description
Hello,
http://
====PART 1====
1) Register the New Living Translation from biblegateway.
2) Search 2 Samuel 25
Result:
Traceback (most recent call last):
File "/home/
self.
File "/home/
return self.db_
File "/home/
search_results = self.get_
File "/home/
return handler.
File "/home/
self.
File "/home/
self.
File "/home/
all_tags = parent.
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/
self.
File "/home/
return self.db_
File "/home/
search_results = self.get_
File "/home/
return handler.
File "/home/
verse_list = self._extract_
File "/home/
c_verse, c_text = self._extract_
File "/home/
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!
Related branches
- Raoul Snyman: Approve
- Tim Bentley: Approve
-
Diff: 12 lines (+2/-0)1 file modifiedopenlp/plugins/bibles/lib/http.py (+2/-0)
I can confirm this with 2.0 Trunk