This commit is contained in:
Julien Constant 2023-04-13 18:50:50 +02:00
parent 6279135709
commit 1e7b8fadc5

View File

@ -35,11 +35,14 @@ def get_git_revision_short_hash() -> str:
""" """
Return the short hash of the current commit Return the short hash of the current commit
""" """
try:
return ( return (
subprocess.check_output(["git", "rev-parse", "--short", "HEAD"]) subprocess.check_output(["git", "rev-parse", "--short", "HEAD"])
.decode("ascii") .decode("ascii")
.strip() .strip()
) )
except:
return ""
def get_start_of_semester(d=date.today()): def get_start_of_semester(d=date.today()):