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:
Tomas Groth 2016-03-29 22:34:50 +02:00
parent 8442ec0b5b
commit 147e142d3f

View File

@ -764,6 +764,9 @@ class BibleMediaItem(MediaManagerItem):
except IndexError:
log.exception('The second_search_results does not have as many verses as the search_results.')
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,
second_version)
else: