Skip to content

Commit 1d459cd

Browse files
committed
[py]: use subprocess.TimeoutExpired when catching errors on Popen.wait()
1 parent 1c72078 commit 1d459cd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

py/selenium/webdriver/common/service.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ def _terminate_process(self) -> None:
174174
self.process.terminate()
175175
try:
176176
self.process.wait(60)
177-
except subprocess.TimeoutError:
177+
except subprocess.TimeoutExpired:
178178
logger.error(
179179
"Service process refused to terminate gracefully with SIGTERM, escalating to SIGKILL.",
180180
exc_info=True,

0 commit comments

Comments
 (0)