Skip to content
Snippets Groups Projects
Unverified Commit 9b4fb32c authored by Xi Yang's avatar Xi Yang Committed by GitHub
Browse files

Update verifying connection (#11821)

parent f6d57c7b
No related branches found
No related tags found
No related merge requests found
......@@ -51,7 +51,8 @@ class Neo4jGraphStore(GraphStore):
self.structured_schema: Dict[str, Any] = {}
# Verify connection
try:
self._driver.verify_connectivity()
with self._driver as driver:
driver.verify_connectivity()
except neo4j.exceptions.ServiceUnavailable:
raise ValueError(
"Could not connect to Neo4j database. "
......
......@@ -27,7 +27,7 @@ exclude = ["**/BUILD"]
license = "MIT"
name = "llama-index-graph-stores-neo4j"
readme = "README.md"
version = "0.1.2"
version = "0.1.3"
[tool.poetry.dependencies]
python = ">=3.8.1,<4.0"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment