From 75c6fe019912791b649acc189fa673c37f8c091f Mon Sep 17 00:00:00 2001 From: kjeld Schouten-Lebbing Date: Wed, 19 Jan 2022 20:34:56 +0100 Subject: [PATCH] cleanup sync messages --- trueupdate/__init__.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/trueupdate/__init__.py b/trueupdate/__init__.py index f277de79..1664fb92 100644 --- a/trueupdate/__init__.py +++ b/trueupdate/__init__.py @@ -105,8 +105,10 @@ def sync_catalog(): process = subprocess.Popen(["cli", "-c", "app catalog sync_all"], stdout=subprocess.PIPE) while process.poll() is None: lines = process.stdout.readline() - print (lines) - print (process.stdout.read()) + print (lines.decode('utf-8')) + temp = process.stdout.read() + if temp: + print (temp.decode('utf-8')) def docker_prune(): if PRUNE: