fix traceback if bible list download fails.

This commit is contained in:
Tomas Groth 2016-05-05 22:30:00 +02:00
parent 26e72a1fec
commit 7ee0af01b2
1 changed files with 1 additions and 1 deletions

View File

@ -577,7 +577,7 @@ class BibleImportForm(OpenLPWizard):
:param index: The index of the combo box.
"""
self.web_translation_combo_box.clear()
if self.web_bible_list:
if self.web_bible_list and index in self.web_bible_list:
bibles = list(self.web_bible_list[index].keys())
bibles.sort(key=get_locale_key)
self.web_translation_combo_box.addItems(bibles)