spatialaudio / python-sounddevice

:sound: Play and Record Sound with Python :snake:
https://python-sounddevice.readthedocs.io/
MIT License
1.02k stars 149 forks source link

Avoid exception in PortAudioError.__str__() #459

Closed mgeier closed 1 year ago

mgeier commented 1 year ago

I guess the __str__() method of an exception should never raise an exception itself.

I saw this problem at https://stackoverflow.com/q/75713078/