forked from openlp/openlp
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]
|
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