From 51b1535a298018f774d546f8e4b531a76db968e4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gina=20H=C3=A4u=C3=9Fge?= Date: Thu, 27 Aug 2015 16:43:58 +0200 Subject: [PATCH] Make sure stdout is a string when we try to treat it as such... --- .../plugins/softwareupdate/scripts/update-octoprint.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/octoprint/plugins/softwareupdate/scripts/update-octoprint.py b/src/octoprint/plugins/softwareupdate/scripts/update-octoprint.py index b12f1729e..54df463c8 100644 --- a/src/octoprint/plugins/softwareupdate/scripts/update-octoprint.py +++ b/src/octoprint/plugins/softwareupdate/scripts/update-octoprint.py @@ -93,7 +93,8 @@ def _git(args, cwd, verbose=False, git_executable=None): for c in commands: try: - return _execute([c] + args, cwd=cwd) + returncode, stdout, stderr = _execute([c] + args, cwd=cwd) + return returncode, "\n".join(stdout), "\n".join(stderr) except EnvironmentError: e = sys.exc_info()[1] if e.errno == errno.ENOENT: