Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -455,6 +455,12 @@ def __get_datasets_content_index(self, dataset_name: str, json) -> List[dict]:
dataset_dict = {}
for path in metadata:
entity = path["entity"]

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seem null/none entities are meant to go through to the codeblock on 467 per the comment on 466. Could this be resolved simply by changing line 464 to if entity and entity.lower() == "code": ?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you can make this change if there will be no errors after

if entity is None:
raise ValueError(
f"Invalid metadata: 'entity' is null for path '{path.get('path')}'"
)

if entity.lower() == "code":
entity = "Code"
# Do not skip 'null' entities; include them as datasets
Expand Down
Loading