diff --git a/sound.py b/sound.py index 5d428a5..21edbbb 100644 --- a/sound.py +++ b/sound.py @@ -22,7 +22,7 @@ class PCMStream: # convert to pcm format return bytes(data) - except sounddevice.PortAudioError as err: + except Exception as err: print(f"Error in PCMStream.read: '{err}'") def change_device(self, device_ID): @@ -39,7 +39,7 @@ class PCMStream: self.stream.close() - except sounddevice.PortAudioError as err: + except Exception as err: print(f"Error in PCMStream.clean_up: '{err}'")