Skip to content

Commit

Permalink
skip missing local files when merging
Browse files Browse the repository at this point in the history
  • Loading branch information
pnadolny13 committed Aug 30, 2023
1 parent 191e70c commit acb6a82
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions hub_utils/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -385,6 +385,9 @@ def merge_metadata(
for yaml_file in variant_path_list.split(","):
suffix = util.get_suffix(yaml_file)
local_file_path = f"{local_path}/{suffix}.json"
if not os.path.exists(local_file_path):
print(f"Skipping {suffix} as it does not exist locally")
continue
new_extract_json = util._read_json(local_file_path)
existing_def = util._read_yaml(yaml_file)
(
Expand Down

0 comments on commit acb6a82

Please sign in to comment.