fix: handle psutil.NoSuchProcess

This commit is contained in:
2026-07-06 22:40:30 +08:00
parent 05c30a2e75
commit caf74d924d
2 changed files with 7 additions and 2 deletions
+2 -1
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):