From 1b8c3f420a6f74fa8dd6e5a0762e14d9ba5f7426 Mon Sep 17 00:00:00 2001 From: Wyndham Blanton Date: Tue, 24 Jan 2017 11:31:05 -0800 Subject: [PATCH] avoid py3 error in setup.py (#2030) print("GIT SHA: " + GIT_SHA) TypeError: Can't convert 'NoneType' object to str implicitly --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index ed8d08178ecd9..20dcbc16efebd 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ def get_git_sha(): s = str(subprocess.check_output(['git', 'rev-parse', 'HEAD'])) return s.strip() except: - pass + return "" GIT_SHA = get_git_sha() version_info = {