Skip to content

Commit 3a843aa

Browse files
committed
[py]: use subprocess.TimeoutError for handling subprocess termination waiting
1 parent 6a47cc3 commit 3a843aa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

py/selenium/webdriver/common/service.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ def _terminate_process(self) -> None:
169169
self.process.terminate()
170170
try:
171171
self.process.wait(60)
172-
except TimeoutError:
172+
except subprocess.TimeoutError:
173173
logger.error(
174174
"Service process refused to terminate gracefully with SIGTERM, escalating to SIGKILL.",
175175
exc_info=True,

0 commit comments

Comments
 (0)