config: handle missing rclone
This commit is contained in:
parent
ecc685531d
commit
03763a612d
6
funcs.py
6
funcs.py
|
@ -21,7 +21,11 @@ def rclone_obscure(pass_name):
|
||||||
def sh(*args):
|
def sh(*args):
|
||||||
return check_output(args).decode().strip()
|
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):
|
def var(to_escape: str):
|
||||||
|
|
Reference in New Issue