tweak pyaudio error message

This commit is contained in:
Damien Elmes 2009-07-18 18:11:57 +09:00
parent d96b46887e
commit 4be3de322c

View file

@ -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,