From 52d41a4339c70a367e8555f4d9ad6eff22561290 Mon Sep 17 00:00:00 2001 From: SomberNight Date: Tue, 27 Feb 2018 03:06:49 +0100 Subject: [PATCH] follow-up 5893af5025a66121f95f9492f70c16cdf00b565b clean git version a bit (convert to str and remove trailing newline) --- gui/qt/exception_window.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gui/qt/exception_window.py b/gui/qt/exception_window.py index 1713af3ca..743a98351 100644 --- a/gui/qt/exception_window.py +++ b/gui/qt/exception_window.py @@ -182,7 +182,8 @@ class Exception_Window(QWidget): @staticmethod def get_git_version(): dir = os.path.dirname(os.path.realpath(sys.argv[0])) - return subprocess.check_output(['git', 'describe', '--always'], cwd=dir) + version = subprocess.check_output(['git', 'describe', '--always'], cwd=dir) + return str(version, "utf8").strip() def _show_window(*args):