From 4be3de322c3f2ffd34313237a445db8982403c4b Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Sat, 18 Jul 2009 18:11:57 +0900 Subject: [PATCH] tweak pyaudio error message --- anki/sound.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/anki/sound.py b/anki/sound.py index d3bf37b89..58a7d1ed1 100644 --- a/anki/sound.py +++ b/anki/sound.py @@ -266,7 +266,8 @@ class PyAudioThreadedRecorder(threading.Thread): try: p = pyaudio.PyAudio() 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, channels=PYAU_CHANNELS, rate=PYAU_RATE,