mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-09 18:39:04 +08:00
Fix: [ALAS] Catch OSError when iter running emulators
This commit is contained in:
parent
78c59bb490
commit
dc530e7538
@ -506,9 +506,10 @@ class EmulatorManager(EmulatorManagerBase):
|
||||
try:
|
||||
exe = proc.cmdline()
|
||||
exe = exe[0].replace(r'\\', '/').replace('\\', '/')
|
||||
except (psutil.AccessDenied, psutil.NoSuchProcess, IndexError):
|
||||
except (psutil.AccessDenied, psutil.NoSuchProcess, IndexError, OSError):
|
||||
# psutil.AccessDenied
|
||||
# NoSuchProcess: process no longer exists (pid=xxx)
|
||||
# OSError: [WinError 87] 参数错误。: '(originated from ReadProcessMemory)'
|
||||
continue
|
||||
|
||||
if Emulator.is_emulator(exe):
|
||||
|
||||
Loading…
Reference in New Issue
Block a user