Skip to content
Merged
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.7.2'
rev: 'v0.7.4'
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix]
Expand Down
4 changes: 2 additions & 2 deletions src/scmrepo/git/lfs/storage.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def open(
oid = obj if isinstance(obj, str) else obj.oid
path = self.oid_to_path(oid)
try:
return open(path, **kwargs) # noqa: SIM115
return open(path, **kwargs)
except FileNotFoundError:
if not fetch_url or not isinstance(obj, Pointer):
raise
Expand All @@ -57,7 +57,7 @@ def open(
raise FileNotFoundError(
errno.ENOENT, os.strerror(errno.ENOENT), path
) from exc
return open(path, **kwargs) # noqa: SIM115
return open(path, **kwargs)

def close(self):
pass
Expand Down
Loading