Skip to content

Commit 251257a

Browse files
author
Zhen Li
committed
Merge pull request #74 from neo4j/1.0-socket-error-61
Added error 10061
2 parents e63c28c + be6c0fa commit 251257a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

neo4j/v1/connection.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -402,7 +402,7 @@ def connect(host, port=None, ssl_context=None, **config):
402402
try:
403403
s = create_connection((host, port))
404404
except SocketError as error:
405-
if error.errno == 111 or error.errno == 61:
405+
if error.errno == 111 or error.errno == 61 or error.errno == 10061:
406406
raise ProtocolError("Unable to connect to %s on port %d - is the server running?" % (host, port))
407407
else:
408408
raise

0 commit comments

Comments
 (0)