From 30ed671fa2854d15e0cdd12faa7cae4758d65edb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cristina=20E=2E=20Gonz=C3=A1lez-Espinoza?= Date: Thu, 31 Oct 2024 14:55:07 +0100 Subject: [PATCH] clean formating strings (#426) --- kgforge/core/reshaping.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kgforge/core/reshaping.py b/kgforge/core/reshaping.py index 7fc1d596..43f38f22 100644 --- a/kgforge/core/reshaping.py +++ b/kgforge/core/reshaping.py @@ -114,12 +114,12 @@ def collect_values_jp(data: Resource, follow: str, constraint_dict: Optional[Dict] = None) -> List[str]: try: properties = follow.split('.') - pattern = f"$." + "[*].".join(properties) + pattern = "$." + "[*].".join(properties) jp_query = jp.parse(pattern) data = as_json(data, False, False, None, None, None) results = jp_query.find(data) if len(results) == 0: - raise exception(f"Path not found") + raise exception(f"Path {follow} not found") if constraint_dict: if len(constraint_dict) != 1: raise NotImplementedError("Only one constraint can be impossed at the moment")