Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Jan 27, 2025
1 parent ead6fbe commit 6e1452c
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/pybiocfilecache/cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6e1452c

Please sign in to comment.