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