Skip to content

Commit

Permalink
Refactor get_git_commit_hash function
Browse files Browse the repository at this point in the history
  • Loading branch information
fvergaracl committed Mar 7, 2024
1 parent b65d424 commit 6147c22
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion app/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,11 @@ def custom_openapi():

def get_git_commit_hash() -> str:
"""
Returns the current git commit hash, or "unknown" if not available.
Returns the current git commit hash, or "unknown" if not available.
Returns:
str: The current git commit hash, or "unknown" if not available.
"""
try:

Expand Down

0 comments on commit 6147c22

Please sign in to comment.