config: handle missing rclone

This commit is contained in:
lelgenio 2021-12-07 21:15:23 -03:00
parent ecc685531d
commit 03763a612d
1 changed files with 5 additions and 1 deletions

View File

@ -21,7 +21,11 @@ def rclone_obscure(pass_name):
def sh(*args):
return check_output(args).decode().strip()
return sh("rclone", "obscure", sh("_pass_get", pass_name))
try:
return sh("rclone", "obscure", sh("_pass_get", pass_name))
except Exception:
print("Error obscuring rclone password")
return ""
def var(to_escape: str):