1
0
mirror of https://gitee.com/sui-feng-cb/AzurLaneAutoScript1 synced 2026-03-12 08:38:20 +08:00

Fix: [ALAS] Handle psutil.NoSuchProcess

This commit is contained in:
LmeSzinc
2024-06-11 12:44:26 +08:00
parent 5540debf30
commit 4c98442422
2 changed files with 7 additions and 2 deletions

View File

@@ -471,8 +471,9 @@ class EmulatorManager(EmulatorManagerBase):
try:
exe = proc.cmdline()
exe = exe[0].replace(r'\\', '/').replace('\\', '/')
except (psutil.AccessDenied, IndexError):
except (psutil.AccessDenied, psutil.NoSuchProcess, IndexError):
# psutil.AccessDenied
# NoSuchProcess: process no longer exists (pid=xxx)
continue
if Emulator.is_emulator(exe):