This commit is contained in:
Samuel Mehrbrodt 2014-06-11 07:26:29 +02:00
parent bc6eca2dec
commit 7f3f866a00

View File

@ -64,14 +64,12 @@ class EasyWorshipSongImport(SongImport):
def doImport(self):
# Open the DB and MB files if they exist
import_source_mb = self.importSource.replace('.DB', '.MB')
.replace('.db', '.mb')
import_source_mb = self.importSource.replace('.DB', '.MB').replace('.db', '.mb')
if not os.path.isfile(self.importSource):
self.logError(self.importSource, translate(
'SongsPlugin.EasyWorshipSongImport',
'This file does not exist.'))
return
return
if not os.path.isfile(import_source_mb):
self.logError(self.importSource, translate(
'SongsPlugin.EasyWorshipSongImport',