mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 16:56:36 -04:00
catch mplayer error
This commit is contained in:
parent
0ee498ac4e
commit
18945dd2fd
1 changed files with 2 additions and 0 deletions
|
@ -50,6 +50,8 @@ class ErrorHandler(QObject):
|
||||||
return
|
return
|
||||||
if "Pyaudio not" in error:
|
if "Pyaudio not" in error:
|
||||||
return showWarning(_("Please install PyAudio"))
|
return showWarning(_("Please install PyAudio"))
|
||||||
|
if "install mplayer" in error:
|
||||||
|
return showWarning(_("Please install mplayer"))
|
||||||
if "no default output" in error:
|
if "no default output" in error:
|
||||||
return showWarning(_("Please connect a microphone."))
|
return showWarning(_("Please connect a microphone."))
|
||||||
stdText = _("""\
|
stdText = _("""\
|
||||||
|
|
Loading…
Reference in a new issue