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...")
|
||||
proc.kill()
|
||||
except SystemError:
|
||||
pass
|
||||
except:
|
||||
print("error iterating mplayer processes")
|
||||
|
||||
mplayerCmd = ["mplayer", "-really-quiet", "-noautosub"]
|
||||
if isWin:
|
||||
|
Loading…
Reference in New Issue
Block a user