Skip to content

Commit

Permalink
[py]: use subprocess.TimeoutExpired when catching errors on `Popen.…
Browse files Browse the repository at this point in the history
…wait()`
  • Loading branch information
symonk committed Jul 22, 2023
1 parent 1c72078 commit 1d459cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion py/selenium/webdriver/common/service.py
Expand Up @@ -174,7 +174,7 @@ def _terminate_process(self) -> None:
self.process.terminate()
try:
self.process.wait(60)
except subprocess.TimeoutError:
except subprocess.TimeoutExpired:
logger.error(
"Service process refused to terminate gracefully with SIGTERM, escalating to SIGKILL.",
exc_info=True,
Expand Down

0 comments on commit 1d459cd

Please sign in to comment.