mirror of
https://github.com/google/bumble.git
synced 2026-04-18 00:45:32 +00:00
better error message
This commit is contained in:
@@ -88,7 +88,9 @@ def check_audio_output(output: str) -> bool:
|
||||
) from exc
|
||||
except OSError as exc:
|
||||
raise ValueError(
|
||||
'audio output not available (sounddevice python module failed to load)'
|
||||
'audio output not available '
|
||||
'(sounddevice python module failed to load: '
|
||||
f'{exc})'
|
||||
) from exc
|
||||
|
||||
if output == 'device':
|
||||
@@ -303,7 +305,9 @@ def check_audio_input(input: str) -> bool:
|
||||
) from exc
|
||||
except OSError as exc:
|
||||
raise ValueError(
|
||||
'audio input not available (sounddevice python module failed to load)'
|
||||
'audio input not available '
|
||||
'(sounddevice python module failed to load: '
|
||||
f'{exc})'
|
||||
) from exc
|
||||
|
||||
if input == 'device':
|
||||
|
||||
Reference in New Issue
Block a user