Skip to content
Open
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ repos:
- id: sort-simple-yaml
- id: trailing-whitespace
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: 'v0.14.10'
rev: 'v0.15.0'
hooks:
- id: ruff-check
args: [--fix, --exit-non-zero-on-fix]
Expand Down
2 changes: 1 addition & 1 deletion src/dvc_data/hashfile/db/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ def check(

assert actual.name == self.hash_name
assert actual.value
if actual.value.split(".")[0] != oid.split(".")[0]:
if actual.value.split(".")[0] != oid.split(".", maxsplit=1)[0]:
logger.debug("corrupted cache file '%s'.", obj.path)
with suppress(FileNotFoundError):
self.fs.remove(obj.path)
Expand Down
2 changes: 1 addition & 1 deletion src/dvc_data/index/index.py
Original file line number Diff line number Diff line change
Expand Up @@ -768,7 +768,7 @@ def _load_from_storage(trie, entry, storage_info):
else:
_load_from_file_storage(trie, entry, storage)
return True
except Exception as exc: # noqa: BLE001
except Exception as exc:
# NOTE: this might be some random fs exception, e.g. auth error
last_exc = exc
logger.debug(
Expand Down