mirror of
https://github.com/xonsh/xonsh.git
synced 2025-03-04 08:24:40 +01:00
Merge pull request #1351 from xonsh/git_not_found
Catch FileNotFoundError when git is not on PATH
This commit is contained in:
commit
5466d3e4ca
1 changed files with 1 additions and 1 deletions
2
setup.py
2
setup.py
|
@ -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:
|
||||
|
|
Loading…
Add table
Reference in a new issue