Merge pull request #1351 from xonsh/git_not_found

Catch FileNotFoundError when git is not on PATH
This commit is contained in:
Gil Forsyth 2016-06-27 06:30:41 -04:00 committed by GitHub
commit 5466d3e4ca

View file

@ -112,7 +112,7 @@ def dirty_version():
try:
_version = subprocess.check_output(['git', 'describe', '--tags'])
_version = _version.decode('ascii')
except subprocess.CalledProcessError:
except (subprocess.CalledProcessError, FileNotFoundError):
return False
try: