diff options
-rwxr-xr-x | setup.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -79,7 +79,7 @@ def git_version(): try: out = _minimal_ext_cmd(['git', 'rev-parse', 'HEAD']) GIT_REVISION = out.strip().decode('ascii') - except subprocess.SubprocessError: + except (subprocess.SubprocessError, OSError): GIT_REVISION = "Unknown" return GIT_REVISION |