psutil may throw OSError when calling .exe()
https://anki.tenderapp.com/discussions/ankidesktop/33406-failed-to-execute-script-runanki
This commit is contained in:
parent
cc335a15e4
commit
1a5322a396
@ -164,8 +164,8 @@ def cleanupOldMplayerProcesses():
|
|||||||
|
|
||||||
print("terminating old mplayer process...")
|
print("terminating old mplayer process...")
|
||||||
proc.kill()
|
proc.kill()
|
||||||
except SystemError:
|
except:
|
||||||
pass
|
print("error iterating mplayer processes")
|
||||||
|
|
||||||
mplayerCmd = ["mplayer", "-really-quiet", "-noautosub"]
|
mplayerCmd = ["mplayer", "-really-quiet", "-noautosub"]
|
||||||
if isWin:
|
if isWin:
|
||||||
|
Loading…
Reference in New Issue
Block a user