mirror of
https://git.selfprivacy.org/SelfPrivacy/selfprivacy-rest-api.git
synced 2025-03-18 20:39:46 +00:00
Linting
This commit is contained in:
parent
f4288dacd6
commit
710925f3ea
1 changed files with 3 additions and 3 deletions
|
@ -117,9 +117,9 @@ class ResticController:
|
||||||
stdout=subprocess.PIPE,
|
stdout=subprocess.PIPE,
|
||||||
stderr=subprocess.STDOUT,
|
stderr=subprocess.STDOUT,
|
||||||
) as backup_listing_process_descriptor:
|
) as backup_listing_process_descriptor:
|
||||||
snapshots_list = backup_listing_process_descriptor.communicate()[
|
snapshots_list = backup_listing_process_descriptor.communicate()[0].decode(
|
||||||
0
|
"utf-8"
|
||||||
].decode("utf-8")
|
)
|
||||||
try:
|
try:
|
||||||
starting_index = snapshots_list.find("[")
|
starting_index = snapshots_list.find("[")
|
||||||
json.loads(snapshots_list[starting_index:])
|
json.loads(snapshots_list[starting_index:])
|
||||||
|
|
Loading…
Add table
Reference in a new issue