Skip to content

Commit 628769a

Browse files
committed
FIX(JSNOP) Contains check Borged for Pandas ...
due to returning the actual value that cannot be cast to boolean!@
1 parent 1a45100 commit 628769a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

graphtik/jsonpointer.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,8 @@ def contains_path(
273273
) -> bool:
274274
"""Test if `doc` has a value for json-pointer path by calling :func:`.resolve_path()`. """
275275
try:
276-
return resolve_path(doc, path, root=root, descend_objects=descend_objects)
276+
resolve_path(doc, path, root=root, descend_objects=descend_objects)
277+
return True
277278
except ResolveError:
278279
return False
279280

0 commit comments

Comments
 (0)