From 1f36c778a486613c3422c44ea337b45b598e8061 Mon Sep 17 00:00:00 2001 From: Corey Goldberg <1113081+cgoldberg@users.noreply.github.com> Date: Thu, 20 Mar 2025 14:40:10 -0400 Subject: [PATCH] [py] fix bare exception --- py/selenium/webdriver/common/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/py/selenium/webdriver/common/utils.py b/py/selenium/webdriver/common/utils.py index 375838aceb757..766dd1b53b370 100644 --- a/py/selenium/webdriver/common/utils.py +++ b/py/selenium/webdriver/common/utils.py @@ -106,7 +106,7 @@ def is_connectable(port: int, host: Optional[str] = "localhost") -> bool: if socket_: try: socket_.shutdown(socket.SHUT_RDWR) - except: + except Exception: pass socket_.close() return result