From 03763a612da4610bb492d3a025f0fc6ba9f1272d Mon Sep 17 00:00:00 2001 From: lelgenio Date: Tue, 7 Dec 2021 21:15:23 -0300 Subject: [PATCH] config: handle missing rclone --- funcs.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/funcs.py b/funcs.py index c48d1f8..3d46883 100644 --- a/funcs.py +++ b/funcs.py @@ -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):