psutil may throw OSError when calling .exe()

https://anki.tenderapp.com/discussions/ankidesktop/33406-failed-to-execute-script-runanki
This commit is contained in:
Damien Elmes 2019-04-08 15:56:06 +10:00
parent cc335a15e4
commit 1a5322a396

View File

@ -164,8 +164,8 @@ def cleanupOldMplayerProcesses():
print("terminating old mplayer process...")
proc.kill()
except SystemError:
pass
except:
print("error iterating mplayer processes")
mplayerCmd = ["mplayer", "-really-quiet", "-noautosub"]
if isWin: