From 9c1bf6ac90139d06d0f9e8078d9424e416227e42 Mon Sep 17 00:00:00 2001 From: Holger Frey Date: Mon, 12 Aug 2019 11:39:57 +0200 Subject: [PATCH] typo in error catch --- compare_checksums.py | 2 +- create_snapshot_backup.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/compare_checksums.py b/compare_checksums.py index ece1196..1d53eca 100644 --- a/compare_checksums.py +++ b/compare_checksums.py @@ -27,7 +27,7 @@ def get_local_backup_members(): def get_remote_checksums(): result = {} for member in get_local_backup_members(): - remote_path = f"{REMOTE_PATH}/{member}/\*" + remote_path = f"~/{REMOTE_PATH}/{member}/\*" cmd_result = remote_call(["sha256sum", remote_path]) print(cmd_result) diff --git a/create_snapshot_backup.py b/create_snapshot_backup.py index 1befc1a..fdbb0b1 100755 --- a/create_snapshot_backup.py +++ b/create_snapshot_backup.py @@ -49,6 +49,7 @@ def remote_call(arguments): try: result = call(cmd, as_text=True) except subprocess.CalledProcessError as e: + print("CMD:", e.cmd) print("STDERR:", e.stderr) raise