From b7c8bade4c6d7028fe482f73440cc5a5d9b94623 Mon Sep 17 00:00:00 2001 From: Illia Chub Date: Mon, 25 Oct 2021 21:18:52 +0300 Subject: [PATCH] Fixed Popen communication --- main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.py b/main.py index 94fe5967..63d6cc51 100755 --- a/main.py +++ b/main.py @@ -483,9 +483,9 @@ def ListAllBackups(): "snapshots", "--password-file", "/var/lib/restic/rpass", "--json" ], shell=True, stdout=subprocess.PIPE, stderr=subprocess.STDOUT) - backupListingProcessDescriptor.communicate()[0] + snapshotsList = backupListingProcessDescriptor.communicate()[0] - return backupListingProcessDescriptor + return snapshotsList