mirror of
https://github.com/ankitects/anki.git
synced 2025-11-18 10:37:12 -05:00
if audio player fails to start, give better error
This commit is contained in:
parent
c0c969d686
commit
2944b8194b
1 changed files with 5 additions and 2 deletions
|
|
@ -121,8 +121,11 @@ class QueueMonitor(threading.Thread):
|
|||
time.sleep(0.1)
|
||||
if queue:
|
||||
path = queue.pop(0)
|
||||
try:
|
||||
retryWait(subprocess.Popen(
|
||||
externalPlayer + [path], startupinfo=si))
|
||||
except OSError:
|
||||
raise Exception("Audio player not found")
|
||||
else:
|
||||
return
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue