Skip to content

Commit

Permalink
Keep mypy happy
Browse files Browse the repository at this point in the history
  • Loading branch information
kdp-cloud committed Jan 3, 2025
1 parent 8ab6950 commit 2e9ad6e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions mars-cli/mars_lib/isa_json.py
Original file line number Diff line number Diff line change
Expand Up @@ -473,6 +473,11 @@ def update_isa_json(isa_json: IsaJson, repo_response: RepositoryResponse) -> Isa
)
elif has_data_files_in_path:
data_file_filter = get_filter_for_accession_key(accession, "dataFiles")
if not data_file_filter:
raise ValueError(
f"Data file filter is not present in {accession.path}."
)

updated_node = apply_filter(data_file_filter, updated_node.dataFiles)
if not accession_data_file_comment_present(updated_node):
create_accession_data_file_comment(updated_node)
Expand Down

0 comments on commit 2e9ad6e

Please sign in to comment.