Skip to content

Commit 6207351

Browse files
committed
simple syntax update
1 parent f8f5180 commit 6207351

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/utils/metakg/path_finder.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,9 +123,9 @@ def get_paths(self, cutoff=2, api_details=False, predicate_filter=None, bte=Fals
123123
for subject in self.expanded_fields["subject"]:
124124
for object in self.expanded_fields["object"]:
125125
if subject not in self.G:
126-
return { "error": f"Source node {subject} is not found in the MetaKG" }
126+
return { "error": f"Subject node {subject} is not found in the MetaKG" }
127127
if object not in self.G:
128-
return { "error": f"Target node {object} is not found in the MetaKG" }
128+
return { "error": f"Object node {object} is not found in the MetaKG" }
129129
try:
130130
# Check if a path exists between the subject and object
131131
if nx.has_path(self.G, subject, object):

0 commit comments

Comments
 (0)