Refactor code for readability and compatibility.
This commit is contained in:
parent
a09835049b
commit
c6d9c0619e
43 changed files with 129 additions and 112 deletions
|
|
@ -103,6 +103,7 @@ def _create_version():
|
|||
try:
|
||||
version = "%s (rev %s)" % (version, check_output("git rev-parse --short HEAD", shell=True, cwd=root, stderr=STDOUT).strip())
|
||||
except (IOError, CalledProcessError):
|
||||
# ignore if we cannot get to git
|
||||
pass
|
||||
return version
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue