Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions neo4j/io/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@
)
from neo4j.routing import RoutingTable


# Set up logger
log = getLogger("neo4j")

Expand Down Expand Up @@ -247,9 +248,8 @@ def open(cls, address, *, auth=None, timeout=None, routing_context=None, **pool_

try:
connection.hello()
except Exception as error:
log.debug("[#%04X] C: <CLOSE> %s", s.getsockname()[1], str(error))
_close_socket(s)
except Exception:
connection.close()
raise

return connection
Expand Down