mirror of
https://github.com/netinvent/npbackup.git
synced 2024-11-10 17:15:28 +08:00
Make sure we don't run into an error when no repository / password are set
This commit is contained in:
parent
04381fa6bd
commit
bbd3a20e36
1 changed files with 2 additions and 0 deletions
|
@ -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,
|
||||||
|
|
Loading…
Reference in a new issue