From be6c0fae8319c6d2e8dba70c92ecc3ae6d701f6d Mon Sep 17 00:00:00 2001 From: Nigel Small Date: Tue, 31 May 2016 14:28:49 +0100 Subject: [PATCH] Added error 10061 --- neo4j/v1/connection.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/neo4j/v1/connection.py b/neo4j/v1/connection.py index 25d25174e..21ce4cf1f 100644 --- a/neo4j/v1/connection.py +++ b/neo4j/v1/connection.py @@ -402,7 +402,7 @@ def connect(host, port=None, ssl_context=None, **config): try: s = create_connection((host, port)) except SocketError as error: - if error.errno == 111 or error.errno == 61: + if error.errno == 111 or error.errno == 61 or error.errno == 10061: raise ProtocolError("Unable to connect to %s on port %d - is the server running?" % (host, port)) else: raise