Skip to content

Commit e98a00d

Browse files
authored
Update win32.py
1 parent fab17dc commit e98a00d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/mcp/client/stdio/win32.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,8 @@ async def terminate_windows_process(process: Process | FallbackProcess):
169169
parent = psutil.Process(process.pid)
170170
except psutil.NoSuchProcess:
171171
return
172+
except Exception:
173+
pass # Optionally log the exception
172174
parent = psutil.Process(process.pid)
173175
children = parent.children(recursive=True)
174176
await terminate_psutil_process(children)

0 commit comments

Comments
 (0)