mirror of
https://github.com/k2-fsa/icefall.git
synced 2025-09-19 05:54:20 +00:00
Minor fixes.
This commit is contained in:
parent
517febb006
commit
73205de3ae
@ -56,7 +56,7 @@ def get_git_sha1():
|
||||
git_commit = (
|
||||
git_commit + "-dirty" if dirty_commit else git_commit + "-clean"
|
||||
)
|
||||
except subprocess.CalledProcessError:
|
||||
except: # noqa
|
||||
return None
|
||||
|
||||
return git_commit
|
||||
@ -74,7 +74,7 @@ def get_git_date():
|
||||
.rstrip("\n")
|
||||
.strip()
|
||||
)
|
||||
except subprocess.CalledProcessError:
|
||||
except: # noqa
|
||||
return None
|
||||
|
||||
return git_date
|
||||
@ -92,7 +92,7 @@ def get_git_branch_name():
|
||||
.rstrip("\n")
|
||||
.strip()
|
||||
)
|
||||
except subprocess.CalledProcessError:
|
||||
except: # noqa
|
||||
return None
|
||||
|
||||
return git_date
|
||||
|
Loading…
x
Reference in New Issue
Block a user