Skip to content

Commit 6092340

Browse files
committed
Filter warning for driver 6.0 + neo4j 5.x
1 parent 01be467 commit 6092340

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

graphdatascience/error/cypher_warning_handler.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,11 @@ def wrapper(self: CallerBase, *args: Any, **kwargs: Any) -> Any:
3232
"ignore",
3333
message=r"warn: feature deprecated with replacement\. id is deprecated. It is replaced by elementId or consider using an application-generated id\.",
3434
)
35+
# with neo4j driver 6.0.0 + Neo4j 5.X
36+
warnings.filterwarnings(
37+
"ignore",
38+
message=r"warn: feature deprecated without replacement\. id is deprecated and will be removed without a replacement\.",
39+
)
3540

3641
return func(self, *args, **kwargs)
3742

0 commit comments

Comments
 (0)