Minor fixes.
This commit is contained in:
parent
517febb006
commit
73205de3ae
@ -56,7 +56,7 @@ def get_git_sha1():
|
|||||||
git_commit = (
|
git_commit = (
|
||||||
git_commit + "-dirty" if dirty_commit else git_commit + "-clean"
|
git_commit + "-dirty" if dirty_commit else git_commit + "-clean"
|
||||||
)
|
)
|
||||||
except subprocess.CalledProcessError:
|
except: # noqa
|
||||||
return None
|
return None
|
||||||
|
|
||||||
return git_commit
|
return git_commit
|
||||||
@ -74,7 +74,7 @@ def get_git_date():
|
|||||||
.rstrip("\n")
|
.rstrip("\n")
|
||||||
.strip()
|
.strip()
|
||||||
)
|
)
|
||||||
except subprocess.CalledProcessError:
|
except: # noqa
|
||||||
return None
|
return None
|
||||||
|
|
||||||
return git_date
|
return git_date
|
||||||
@ -92,7 +92,7 @@ def get_git_branch_name():
|
|||||||
.rstrip("\n")
|
.rstrip("\n")
|
||||||
.strip()
|
.strip()
|
||||||
)
|
)
|
||||||
except subprocess.CalledProcessError:
|
except: # noqa
|
||||||
return None
|
return None
|
||||||
|
|
||||||
return git_date
|
return git_date
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user