summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sounddevice.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/sounddevice.py b/sounddevice.py
index 522d626..3a40486 100644
--- a/sounddevice.py
+++ b/sounddevice.py
@@ -2518,7 +2518,7 @@ def _ignore_stderr():
try:
stdio = ffi.dlopen(None)
devnull = stdio.fopen(_os.devnull.encode(), b'w')
- except OSError:
+ except (OSError, AttributeError):
return
try:
stdio.stderr = devnull