Words of Worship import where a file missing the WoW header information would be silently ignored

bzr-revno: 1559
This commit is contained in:
Gerald Britton 2011-05-21 09:19:14 +01:00 committed by Tim Bentley
commit 8872d146a6
1 changed files with 1 additions and 0 deletions

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)