From ae7a14b6f1c90462aa907c8d2fcb5e6958cd8a6f Mon Sep 17 00:00:00 2001 From: Moritz Date: Tue, 30 Apr 2024 14:51:46 +0200 Subject: [PATCH] Fix usage of RESTIC_REPOSITORY_FILE #51 --- backupbot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backupbot.py b/backupbot.py index 4474419..31c034c 100755 --- a/backupbot.py +++ b/backupbot.py @@ -66,7 +66,7 @@ def cli(loglevel, service, repository, machine_logs): def init_repo(): - if repo:= os.environ['RESTIC_REPOSITORY_FILE']: + if repo:= os.environ.get('RESTIC_REPOSITORY_FILE'): # RESTIC_REPOSITORY_FILE and RESTIC_REPOSITORY are mutually exclusive del os.environ['RESTIC_REPOSITORY'] else: