From 1b952975df17c492c3a2e09df6ca101fb49bc6e7 Mon Sep 17 00:00:00 2001 From: Michael McAuliffe Date: Mon, 30 May 2016 13:38:51 -0400 Subject: [PATCH] Catch error 61 on Windows --- 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 670327bab..9b0d2f3f2 100644 --- a/neo4j/v1/connection.py +++ b/neo4j/v1/connection.py @@ -383,7 +383,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 in [111, 61, 10061]: raise ProtocolError("Unable to connect to %s on port %d - is the server running?" % (host, port)) else: raise