summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xsetup.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/setup.py b/setup.py
index cd919bb23..1b7a60eac 100755
--- a/setup.py
+++ b/setup.py
@@ -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