From 51bc28e62bb1cd63a907379db77c5440b87e5f68 Mon Sep 17 00:00:00 2001 From: Eric Torres Date: Wed, 10 Apr 2019 20:48:22 -0700 Subject: [PATCH] Change execution of rsync to text mode --- rbackup/rsync.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rbackup/rsync.py b/rbackup/rsync.py index ce1d287..f6511c2 100644 --- a/rbackup/rsync.py +++ b/rbackup/rsync.py @@ -29,7 +29,7 @@ def rsync(*args): syslog.info("Beginning rsync process") try: - process = subprocess.run(cmd, capture_output=True, check=True) + process = subprocess.run(cmd, capture_output=True, check=True, text=True) except subprocess.CalledProcessError as e: syslog.error(e.stderr) syslog.debug(e.stdout)