diff --git a/anki/sound.py b/anki/sound.py index 6f35d69df..6e1b587ca 100644 --- a/anki/sound.py +++ b/anki/sound.py @@ -330,13 +330,7 @@ class PyAudioThreadedRecorder(threading.Thread): data = b"" while not self.finish: - try: - data += stream.read(chunk) - except IOError as e: - if e[1] == pyaudio.paInputOverflowed: - pass - else: - raise + data += stream.read(chunk, exception_on_overflow=False) stream.close() p.terminate() wf = wave.open(processingSrc, 'wb')