SickGear/lib/filelock/_error.py
Prinz23 a951b34b7f Update Cachecontrol 0.12.6 (167a605) → 0.12.11 (c05ef9e).
Add Filelock 3.9.0 (ce3e891).
Remove Lockfile no longer used by Cachecontrol.
2023-02-09 14:18:18 +00:00

17 lines
399 B
Python

from __future__ import annotations
class Timeout(TimeoutError):
"""Raised when the lock could not be acquired in *timeout* seconds."""
def __init__(self, lock_file: str) -> None:
#: The path of the file lock.
self.lock_file = lock_file
def __str__(self) -> str:
return f"The file lock '{self.lock_file}' could not be acquired."
__all__ = [
"Timeout",
]