Skip to content

Commit b9320a4

Browse files
committed
Try fixing deprecation warning
1 parent d49c589 commit b9320a4

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

graphdatascience/query_runner/neo4j_query_runner.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -268,10 +268,7 @@ def _forward_cypher_warnings(self, notification: dict[str, Any]) -> None:
268268
# (see https://neo4j.com/docs/status-codes/current/notifications/ for more details)
269269
severity = notification["severity"]
270270
if severity == "WARNING":
271-
if (
272-
"query used a deprecated field from a procedure" in notification["description"]
273-
or "The procedure has a deprecated field" in notification["description"]
274-
):
271+
if "deprecated field" in notification["description"] and "procedure" in notification["description"]:
275272
# the client does not expose YIELD fields so we just skip these warnings for now
276273
return
277274

0 commit comments

Comments
 (0)