From f7a813831c684d20de3c2226db575880e6c90e40 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Fri, 14 Jan 2011 05:28:32 +0900 Subject: [PATCH] don't error out if sound is missing on win32 --- anki/sound.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/anki/sound.py b/anki/sound.py index 488afc85b..22144717b 100644 --- a/anki/sound.py +++ b/anki/sound.py @@ -205,7 +205,7 @@ def queueMplayer(path): ensureMplayerThreads() while mplayerEvt.isSet(): time.sleep(0.1) - if tmpdir: + if tmpdir and os.path.exists(path): # mplayer on windows doesn't like the encoding, so we create a # temporary file instead (fd, name) = tempfile.mkstemp(suffix=os.path.splitext(path)[1],