fix backoff index error

This commit is contained in:
dave 2023-09-30 10:10:10 -07:00
parent 915278f45d
commit 85a34d4e57
2 changed files with 2 additions and 2 deletions

View File

@ -4,4 +4,4 @@ CFG_DIR = os.environ.get("RESTICBACKUP_CONFIG_DIR", "/etc/resticbackup.d")
RESTIC_BIN = os.environ.get("RESTICBACKUP_RESTIC_BIN_PATH", "restic")
__version__ = "0.0.7"
__version__ = "0.0.8"

View File

@ -75,7 +75,7 @@ def backoff(func, *args, **kwargs):
try:
return func(*args, **kwargs)
except:
if backoffs > len(backoff):
if backoffs >= len(backoff):
raise
traceback.print_exc()
delay = backoff[backoffs]