Skip to content
This repository was archived by the owner on Sep 2, 2025. It is now read-only.

Commit 0fd436f

Browse files
committed
Backup: Remove unused timeout option
1 parent c3ccff2 commit 0fd436f

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

bumgr/backup.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@ def __init__(
5151
pass_env_path: bool = True,
5252
pass_env_home: bool = True,
5353
mount: str | None = None,
54-
timeout: int = 1800,
5554
):
5655
"""
5756
@@ -83,8 +82,6 @@ def __init__(
8382
to restic. Needed for using cache. Default is ``True``.
8483
Ignored if :param:`pass_env_all` is ``True``.
8584
:param mount: Mount point
86-
:param timeout: Timeout for the backup process.
87-
Defaults to 1800 (30 min).
8885
"""
8986
self.repository = repository
9087
self.source = source
@@ -108,7 +105,6 @@ def __init__(
108105
self.pass_env_home = pass_env_home
109106
self.mount_point = mount
110107
self.exclude_caches = exclude_caches
111-
self.timeout = timeout
112108

113109
def __enter__(self) -> Self:
114110
if self.macos_exclude_item:
@@ -313,9 +309,6 @@ def check_config(
313309
logger.info(
314310
"Using environment variables to retrieve password file or command."
315311
)
316-
timeout: int = config.get("timeout", 1800)
317-
if not isinstance(timeout, int):
318-
errors.append(("timeout", f"Expected type 'int' but got '{type(timeout)}'"))
319312
if command == "mount":
320313
if not config.get("mount"):
321314
errors.append(

0 commit comments

Comments
 (0)