From 3b289ba8e865f940551b9a2081a7e9398423fe62 Mon Sep 17 00:00:00 2001 From: Labrys of Knossos Date: Sun, 16 Dec 2018 09:11:28 -0500 Subject: [PATCH] Fix str expected instead of bytes --- core/versionCheck.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/versionCheck.py b/core/versionCheck.py index 7fb94889..7876c208 100644 --- a/core/versionCheck.py +++ b/core/versionCheck.py @@ -180,9 +180,10 @@ class GitUpdateManager(UpdateManager): output, err = p.communicate() exit_status = p.returncode + output = output.decode('utf-8') + if output: output = output.strip() - output = output.decode('utf-8') if core.LOG_GIT: logger.log(u"git output: {output}".format(output=output), logger.DEBUG)