Skip to content

Commit

Permalink
subprocess raises OSError when git isn't installed (eg, in pbuilder e…
Browse files Browse the repository at this point in the history
…nvironment).
  • Loading branch information
sraustein committed Jul 28, 2016
1 parent 2de6ede commit 794705b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion buildtools/make-version.py
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@


try: try:
ver = subprocess.check_output(("git", "describe", "--match", "buildbot-*", "--dirty"), stderr = open("/dev/null", "w")).strip() ver = subprocess.check_output(("git", "describe", "--match", "buildbot-*", "--dirty"), stderr = open("/dev/null", "w")).strip()
except subprocess.CalledProcessError: except (OSError, subprocess.CalledProcessError):
ver = None ver = None


try: try:
Expand Down

0 comments on commit 794705b

Please sign in to comment.