diff --git a/app/catalog/service.py b/app/catalog/service.py index fbfe980..704da34 100644 --- a/app/catalog/service.py +++ b/app/catalog/service.py @@ -155,10 +155,10 @@ class CatalogService: # Neo4j (NEO4J_AUTH=none means no password) try: - from neo4j import GraphDatabase + from neo4j import GraphDatabase, basic_auth cfg = self.config["neo4j"] - auth = neo4j.basic_auth(cfg["user"], cfg["password"]) if cfg["password"] else None + auth = basic_auth(cfg["user"], cfg["password"]) if cfg["password"] else None self._neo_driver = GraphDatabase.driver(cfg["uri"], auth=auth) with self._neo_driver.session() as s: s.run("RETURN 1").consume()