Skip to content

Commit

Permalink
Fix ConnectionResetError in py/selenium/webdriver
Browse files Browse the repository at this point in the history
  • Loading branch information
rth authored and AutomatedTester committed Mar 26, 2019
1 parent 2a3fd4c commit a333690
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion py/selenium/webdriver/common/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ def is_connectable(port, host="localhost"):
try:
socket_ = socket.create_connection((host, port), 1)
result = True
except socket.error:
except (socket.error, ConnectionResetError) as e:
result = False
finally:
if socket_:
Expand Down

0 comments on commit a333690

Please sign in to comment.