Skip to content

Commit 6f35911

Browse files
committed
Merge branch 'feature/review_harvesting_api' of github.com:fairagro/m4.2_advanced_middleware_api into feature/review_harvesting_api
2 parents 2af625e + d35ee47 commit 6f35911

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

middleware/api_client/src/middleware/api_client/api_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -484,7 +484,7 @@ def _extract_identifier_from_rocrate(arc_content: dict[str, Any]) -> str | None:
484484
graph = arc_content.get("@graph")
485485
if isinstance(graph, list):
486486
for item in graph:
487-
if item.get("@id") == "./":
487+
if isinstance(item, dict) and item.get("@id") == "./":
488488
identifier = item.get("identifier")
489489
if isinstance(identifier, list):
490490
identifier = identifier[0] if identifier else None

0 commit comments

Comments
 (0)