trivial: contrib/get-version.py: require git less hard

This commit is contained in:
Mario Limonciello 2019-11-11 10:15:38 -06:00 committed by Mario Limonciello
parent d630b5ee66
commit 4c39d7f35f

View File

@ -23,7 +23,7 @@ def get_version_git():
try:
version = subprocess.check_output(['git', 'describe'], stderr=subprocess.DEVNULL)
return version.strip().decode('utf-8')
except subprocess.CalledProcessError:
except (subprocess.CalledProcessError, PermissionError, FileNotFoundError):
return ''
def get_version():