diff --git a/discord/opus.py b/discord/opus.py index 33641554e..9eda3f0b3 100644 --- a/discord/opus.py +++ b/discord/opus.py @@ -217,7 +217,8 @@ def _load_default() -> bool: _filename = os.path.join(_basedir, 'bin', f'libopus-0.{_target}.dll') _lib = libopus_loader(_filename) else: - _lib = libopus_loader(ctypes.util.find_library('opus')) + # This is handled in the exception case + _lib = libopus_loader(ctypes.util.find_library('opus')) # type: ignore except Exception: _lib = None