forked from openlp/openlp
Fixes
This commit is contained in:
parent
bc6eca2dec
commit
7f3f866a00
@ -64,14 +64,12 @@ class EasyWorshipSongImport(SongImport):
|
|||||||
|
|
||||||
def doImport(self):
|
def doImport(self):
|
||||||
# Open the DB and MB files if they exist
|
# Open the DB and MB files if they exist
|
||||||
import_source_mb = self.importSource.replace('.DB', '.MB')
|
import_source_mb = self.importSource.replace('.DB', '.MB').replace('.db', '.mb')
|
||||||
.replace('.db', '.mb')
|
|
||||||
if not os.path.isfile(self.importSource):
|
if not os.path.isfile(self.importSource):
|
||||||
self.logError(self.importSource, translate(
|
self.logError(self.importSource, translate(
|
||||||
'SongsPlugin.EasyWorshipSongImport',
|
'SongsPlugin.EasyWorshipSongImport',
|
||||||
'This file does not exist.'))
|
'This file does not exist.'))
|
||||||
return
|
return
|
||||||
return
|
|
||||||
if not os.path.isfile(import_source_mb):
|
if not os.path.isfile(import_source_mb):
|
||||||
self.logError(self.importSource, translate(
|
self.logError(self.importSource, translate(
|
||||||
'SongsPlugin.EasyWorshipSongImport',
|
'SongsPlugin.EasyWorshipSongImport',
|
||||||
|
Loading…
Reference in New Issue
Block a user