diff options
| -rw-r--r-- | sounddevice.py | 2 |
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 |
