avoid py3 error in setup.py (#2030)

print("GIT SHA: " + GIT_SHA)
TypeError: Can't convert 'NoneType' object to str implicitly
This commit is contained in:
Wyndham Blanton 2017-01-24 11:31:05 -08:00 committed by Maxime Beauchemin
parent a3a070855c
commit 1b8c3f420a
1 changed files with 1 additions and 1 deletions

View File

@ -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 = {