Fix Words of Worship import to issue error message for files missing the expected header

This commit is contained in:
Gerald Britton 2011-05-20 12:34:44 -04:00
parent 32127d51bb
commit a5a8c0d6d2

View File

@ -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)