We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 56f8c3f commit 02df4a3Copy full SHA for 02df4a3
1 file changed
sounddevice.py
@@ -1913,7 +1913,7 @@ def __repr__(self):
1913
outs=info['max_output_channels'])
1914
for idx, info in enumerate(self))
1915
if _sys.version_info.major < 3:
1916
- return text.encode(_sys.stdout.encoding or 'utf-8')
+ return text.encode(_sys.stdout.encoding or 'utf-8', 'replace')
1917
return text
1918
1919
0 commit comments