Skip to content

Commit 47c27e1

Browse files
adamnschFlorentinD
andcommitted
Ignore experimental warnining regarding verify_connectivity on neo4j
5.X Co-Authored-By: Florentin Dörre <florentin.dorre@neotechnology.com>
1 parent 1c23a71 commit 47c27e1

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

graphdatascience/query_runner/neo4j_query_runner.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -323,6 +323,15 @@ def _verify_connectivity(self, database: Optional[str] = None) -> None:
323323
category=neo4j.ExperimentalWarning,
324324
message=r"^The configuration may change in the future.$",
325325
)
326+
else:
327+
warnings.filterwarnings(
328+
"ignore",
329+
category=neo4j.ExperimentalWarning,
330+
message=(
331+
r"^All configuration key-word arguments to verify_connectivity\(\) are experimental. "
332+
"They might be changed or removed in any future version without prior notice.$"
333+
),
334+
)
326335
self._driver.verify_connectivity(database=database)
327336
break
328337
except neo4j.exceptions.DriverError as e:

0 commit comments

Comments
 (0)