From 39a97cf6d8c82d91a61bb5b9e090ccfd5523b62d Mon Sep 17 00:00:00 2001 From: Houkime <> Date: Wed, 22 Feb 2023 13:46:28 +0000 Subject: [PATCH] feat(backups): a better error on failed snapshot retrieval --- selfprivacy_api/backup/restic_backuper.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/selfprivacy_api/backup/restic_backuper.py b/selfprivacy_api/backup/restic_backuper.py index 2a41967..e485e01 100644 --- a/selfprivacy_api/backup/restic_backuper.py +++ b/selfprivacy_api/backup/restic_backuper.py @@ -141,6 +141,8 @@ class ResticBackuper(AbstractBackuper): def parse_snapshot_output(self, output: str) -> object: if "[" not in output: - raise ValueError("There is no json in the restic snapshot output") + raise ValueError( + "There is no json in the restic snapshot output : " + output + ) starting_index = output.find("[") return json.loads(output[starting_index:])