FIX: undo change in wave.py

This commit is contained in:
david awad 2019-05-01 18:13:00 -04:00
parent 35984c3650
commit a9e0513d03
No known key found for this signature in database
GPG Key ID: 76BC41AA096C7477
1 changed files with 1 additions and 5 deletions

View File

@ -150,11 +150,7 @@ class Wave_read:
self._nframes = chunk.chunksize // self._framesize
self._data_seek_needed = 0
break
try:
chunk.skip()
except RuntimeError:
raise Error('failed to skip through chunks of WAVE file')
chunk.skip()
if not self._fmt_chunk_read or not self._data_chunk:
raise Error('fmt chunk and/or data chunk missing')