forked from openlp/openlp
Fix traceback when searching for book that doesn't exists in second bible. Fixes bug 1553863.
Fixes: https://launchpad.net/bugs/1553863
This commit is contained in:
parent
8442ec0b5b
commit
147e142d3f
@ -764,6 +764,9 @@ class BibleMediaItem(MediaManagerItem):
|
|||||||
except IndexError:
|
except IndexError:
|
||||||
log.exception('The second_search_results does not have as many verses as the search_results.')
|
log.exception('The second_search_results does not have as many verses as the search_results.')
|
||||||
break
|
break
|
||||||
|
except:
|
||||||
|
log.exception('The second_search_results does not have this book.')
|
||||||
|
break
|
||||||
bible_text = '%s %d%s%d (%s, %s)' % (book, verse.chapter, verse_separator, verse.verse, version,
|
bible_text = '%s %d%s%d (%s, %s)' % (book, verse.chapter, verse_separator, verse.verse, version,
|
||||||
second_version)
|
second_version)
|
||||||
else:
|
else:
|
||||||
|
Loading…
Reference in New Issue
Block a user