Permalink
Browse files

subprocess raises OSError when git isn't installed (eg, in pbuilder e…

…nvironment).
  • Loading branch information...
sraustein committed Jul 28, 2016
1 parent 2de6ede commit 794705b7cde7ab8eade9d38ddd15cfbf5de5ebd8
Showing with 1 addition and 1 deletion.
  1. +1 −1 buildtools/make-version.py
@@ -55,7 +55,7 @@
try:
ver = subprocess.check_output(("git", "describe", "--match", "buildbot-*", "--dirty"), stderr = open("/dev/null", "w")).strip()
-except subprocess.CalledProcessError:
+except (OSError, subprocess.CalledProcessError):
ver = None
try:

0 comments on commit 794705b

Please sign in to comment.