From 1c7504cbb43162e3bcf551e6dc70809dc8b3bd2e Mon Sep 17 00:00:00 2001 From: Raoul Snyman Date: Mon, 22 Mar 2010 22:54:38 +0200 Subject: [PATCH] A small unicode conversion fix. --- openlp/plugins/bibles/lib/opensong.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/openlp/plugins/bibles/lib/opensong.py b/openlp/plugins/bibles/lib/opensong.py index 247c97672..2f7e3e451 100644 --- a/openlp/plugins/bibles/lib/opensong.py +++ b/openlp/plugins/bibles/lib/opensong.py @@ -63,7 +63,8 @@ class OpenSongBible(BibleDB): Loads a Bible from file. """ 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...') file = None success = True