diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 8d2a1c7..ead0243 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -33,7 +33,7 @@ repos: - repo: https://github.com/astral-sh/ruff-pre-commit # Ruff version. - rev: v0.8.6 + rev: v0.9.3 hooks: - id: ruff args: [--fix, --exit-non-zero-on-fix] diff --git a/src/pybiocfilecache/cache.py b/src/pybiocfilecache/cache.py index 6436f55..d8ee3ef 100644 --- a/src/pybiocfilecache/cache.py +++ b/src/pybiocfilecache/cache.py @@ -217,9 +217,7 @@ def get(self, rname: str = None, rid: str = None) -> Optional[Resource]: timeout = 30 while not Path(str(resource.rpath)).exists(): if time() - start >= timeout: - raise TimeoutError( - f"For resource: '{rname}' the rpath does not exist " f"after {timeout} seconds." - ) + raise TimeoutError(f"For resource: '{rname}' the rpath does not exist after {timeout} seconds.") sleep(0.1) # Update access time