forked from openlp/openlp
Fix Words of Worship import to issue error message for files missing the expected header
This commit is contained in:
parent
32127d51bb
commit
a5a8c0d6d2
@ -110,6 +110,7 @@ class WowImport(SongImport):
|
|||||||
self.title = file_name.rpartition(u'.')[0]
|
self.title = file_name.rpartition(u'.')[0]
|
||||||
songData = open(file, 'rb')
|
songData = open(file, 'rb')
|
||||||
if songData.read(19) != u'WoW File\nSong Words':
|
if songData.read(19) != u'WoW File\nSong Words':
|
||||||
|
self.log_error(file)
|
||||||
continue
|
continue
|
||||||
# Seek to byte which stores number of blocks in the song
|
# Seek to byte which stores number of blocks in the song
|
||||||
songData.seek(56)
|
songData.seek(56)
|
||||||
|
Loading…
Reference in New Issue
Block a user