Fix slight bugs that prevent a frozen version

This commit is contained in:
Vincent Le Goff 2018-11-21 16:11:44 +01:00
parent 5a3bd8e1d8
commit ddbd39fce5
2 changed files with 6 additions and 3 deletions

View file

@ -105,7 +105,7 @@ def _create_version():
print(err)
try:
version = "%s (rev %s)" % (version, check_output("git rev-parse --short HEAD", shell=True, cwd=root, stderr=STDOUT).strip())
except (IOError, CalledProcessError):
except (IOError, CalledProcessError, WindowsError):
# ignore if we cannot get to git
pass
return version