From 86fc7446b0f84b07549ff35823a5f4c97ef6bea5 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Tue, 21 Jul 2020 16:07:58 +1000 Subject: [PATCH] protect against exception on initial recording wait --- qt/aqt/sound.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qt/aqt/sound.py b/qt/aqt/sound.py index 9f5f16ae0..a4c2d9104 100644 --- a/qt/aqt/sound.py +++ b/qt/aqt/sound.py @@ -483,7 +483,7 @@ class PyAudioThreadedRecorder(threading.Thread): frames_per_buffer=chunk, ) - stream.read(wait) + stream.read(wait, exception_on_overflow=False) data = b"" while not self.finish: