Skip to content

Commit

Permalink
index: collect: ignore loading errors in collected index
Browse files Browse the repository at this point in the history
Once we've collected stuff from original indexes, we don't really
care about index loading errors and can safely ignore them.
  • Loading branch information
efiop committed Jan 2, 2024
1 parent 9039534 commit 656326e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/dvc_data/index/collect.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,11 @@ def collect( # noqa: C901, PLR0912
for key, storage_info in storage_by_fs.items():
idx = cache_index.view((*cache_key, *key))
idx.storage_map[()] = storage_info

def _onerror(*args):
pass

idx.onerror = _onerror
storage_indexes.append(idx)

return storage_indexes

0 comments on commit 656326e

Please sign in to comment.