mirror of https://gitlab.com/openlp/openlp.git
Words of Worship import where a file missing the WoW header information would be silently ignored
bzr-revno: 1559
This commit is contained in:
commit
8872d146a6
|
@ -110,6 +110,7 @@ class WowImport(SongImport):
|
|||
self.title = file_name.rpartition(u'.')[0]
|
||||
songData = open(file, 'rb')
|
||||
if songData.read(19) != u'WoW File\nSong Words':
|
||||
self.log_error(file)
|
||||
continue
|
||||
# Seek to byte which stores number of blocks in the song
|
||||
songData.seek(56)
|
||||
|
|
Loading…
Reference in New Issue