mirror of
https://github.com/ankitects/anki.git
synced 2025-09-23 00:12:25 -04:00
tweak pyaudio error message
This commit is contained in:
parent
d96b46887e
commit
4be3de322c
1 changed files with 2 additions and 1 deletions
|
@ -266,7 +266,8 @@ class PyAudioThreadedRecorder(threading.Thread):
|
||||||
try:
|
try:
|
||||||
p = pyaudio.PyAudio()
|
p = pyaudio.PyAudio()
|
||||||
except NameError:
|
except NameError:
|
||||||
raise Exception("Recording not supported on OSX10.3.")
|
raise Exception(
|
||||||
|
"Pyaudio not installed (recording not supported on OSX10.3)")
|
||||||
stream = p.open(format=PYAU_FORMAT,
|
stream = p.open(format=PYAU_FORMAT,
|
||||||
channels=PYAU_CHANNELS,
|
channels=PYAU_CHANNELS,
|
||||||
rate=PYAU_RATE,
|
rate=PYAU_RATE,
|
||||||
|
|
Loading…
Reference in a new issue