Make sure we don't run into an error when no repository / password are set

This commit is contained in:
Orsiris de Jong 2023-02-05 17:35:38 +01:00
parent 04381fa6bd
commit bbd3a20e36

View file

@ -214,6 +214,8 @@ class NPBackupRunner:
logger.error("Repo password cannot be empty") logger.error("Repo password cannot be empty")
can_run = False can_run = False
self.is_ready = can_run self.is_ready = can_run
if not can_run:
return
self.restic_runner = ResticRunner( self.restic_runner = ResticRunner(
repository=repository, repository=repository,
password=password, password=password,