Browse Source

typo in error catch

master
Holger Frey 5 years ago
parent
commit
9c1bf6ac90
  1. 2
      compare_checksums.py
  2. 1
      create_snapshot_backup.py

2
compare_checksums.py

@ -27,7 +27,7 @@ def get_local_backup_members():
def get_remote_checksums(): def get_remote_checksums():
result = {} result = {}
for member in get_local_backup_members(): 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]) cmd_result = remote_call(["sha256sum", remote_path])
print(cmd_result) print(cmd_result)

1
create_snapshot_backup.py

@ -49,6 +49,7 @@ def remote_call(arguments):
try: try:
result = call(cmd, as_text=True) result = call(cmd, as_text=True)
except subprocess.CalledProcessError as e: except subprocess.CalledProcessError as e:
print("CMD:", e.cmd)
print("STDERR:", e.stderr) print("STDERR:", e.stderr)
raise raise

Loading…
Cancel
Save