mirror of
https://github.com/netinvent/npbackup.git
synced 2024-09-20 14:56:14 +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
|
@ -214,6 +214,8 @@ class NPBackupRunner:
|
|||
logger.error("Repo password cannot be empty")
|
||||
can_run = False
|
||||
self.is_ready = can_run
|
||||
if not can_run:
|
||||
return
|
||||
self.restic_runner = ResticRunner(
|
||||
repository=repository,
|
||||
password=password,
|
||||
|
|
Loading…
Reference in a new issue