pull/6/head
Inex Code 2021-12-06 21:35:41 +03:00
parent f4288dacd6
commit 710925f3ea
1 changed files with 3 additions and 3 deletions

View File

@ -117,9 +117,9 @@ class ResticController:
stdout=subprocess.PIPE,
stderr=subprocess.STDOUT,
) as backup_listing_process_descriptor:
snapshots_list = backup_listing_process_descriptor.communicate()[
0
].decode("utf-8")
snapshots_list = backup_listing_process_descriptor.communicate()[0].decode(
"utf-8"
)
try:
starting_index = snapshots_list.find("[")
json.loads(snapshots_list[starting_index:])