Skip to content

Commit 7c4024e

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent b9fe0a3 commit 7c4024e

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/dvc_data/hashfile/db/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ def check(
172172

173173
assert actual.name == self.hash_name
174174
assert actual.value
175-
if actual.value.split(".")[0] != oid.split(".")[0]:
175+
if actual.value.split(".")[0] != oid.split(".", maxsplit=1)[0]:
176176
logger.debug("corrupted cache file '%s'.", obj.path)
177177
with suppress(FileNotFoundError):
178178
self.fs.remove(obj.path)

src/dvc_data/index/index.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -768,7 +768,7 @@ def _load_from_storage(trie, entry, storage_info):
768768
else:
769769
_load_from_file_storage(trie, entry, storage)
770770
return True
771-
except Exception as exc: # noqa: BLE001
771+
except Exception as exc:
772772
# NOTE: this might be some random fs exception, e.g. auth error
773773
last_exc = exc
774774
logger.debug(

0 commit comments

Comments
 (0)