Fix traceback if bible list download fails.

This commit is contained in:
Tomas Groth 2016-05-09 21:40:09 +02:00
parent 4ee29b0e3d
commit 2e41c5e6fa
1 changed files with 1 additions and 1 deletions

View File

@ -454,7 +454,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)