forked from openlp/openlp
Fixed another possible bug.
This commit is contained in:
parent
2eaadffea0
commit
0b596dab47
@ -310,8 +310,13 @@ class ImportWizardForm(QtGui.QWizard, Ui_BibleImportWizard):
|
|||||||
books_file.seek(0)
|
books_file.seek(0)
|
||||||
books_reader = csv.reader(books_file, dialect)
|
books_reader = csv.reader(books_file, dialect)
|
||||||
for line in books_reader:
|
for line in books_reader:
|
||||||
self.web_bible_list[WebDownload.Crosswalk][line[0]] = \
|
ver = line[0]
|
||||||
unicode(line[1], u'utf8').strip()
|
name = line[1]
|
||||||
|
if not isinstance(ver, unicode):
|
||||||
|
ver = unicode(ver, u'utf8')
|
||||||
|
if not isinstance(name, unicode):
|
||||||
|
name = unicode(name, u'utf8')
|
||||||
|
self.web_bible_list[WebDownload.Crosswalk][ver] = name.strip()
|
||||||
except:
|
except:
|
||||||
log.exception(u'Crosswalk resources missing')
|
log.exception(u'Crosswalk resources missing')
|
||||||
finally:
|
finally:
|
||||||
|
Loading…
Reference in New Issue
Block a user