solve restart error on windows (#583)

This commit is contained in:
PeterYusuke 2023-02-22 10:21:55 +09:00 committed by GitHub
parent f7a5c99969
commit 1204aa8a26
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -716,6 +716,7 @@ def kill_process_on_port(port):
port: The port.
"""
if get_process_on_port(port) is not None:
with contextlib.suppress(psutil.AccessDenied):
get_process_on_port(port).kill() # type: ignore