A small unicode conversion fix.

This commit is contained in:
Raoul Snyman 2010-03-22 22:54:38 +02:00
parent 76d0d8cf1a
commit 1c7504cbb4

View File

@ -63,7 +63,8 @@ class OpenSongBible(BibleDB):
Loads a Bible from file. Loads a Bible from file.
""" """
log.debug(u'Starting OpenSong import from "%s"' % self.filename) log.debug(u'Starting OpenSong import from "%s"' % self.filename)
self.filename = unicode(self.filename, u'utf-8') if not isinstance(self.filename, unicode):
self.filename = unicode(self.filename, u'utf8')
self.wizard.incrementProgressBar(u'Preparing for import...') self.wizard.incrementProgressBar(u'Preparing for import...')
file = None file = None
success = True success = True