Skip to content

Commit db1223d

Browse files
authored
[py] Fix bare exception (#15465)
[py] fix bare exception
1 parent c43af38 commit db1223d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

py/selenium/webdriver/common/utils.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ def is_connectable(port: int, host: Optional[str] = "localhost") -> bool:
106106
if socket_:
107107
try:
108108
socket_.shutdown(socket.SHUT_RDWR)
109-
except:
109+
except Exception:
110110
pass
111111
socket_.close()
112112
return result

0 commit comments

Comments
 (0)