Skip to content

Commit

Permalink
Be more robust against git's output
Browse files Browse the repository at this point in the history
  • Loading branch information
ziotom78 committed Aug 16, 2023
1 parent e0a7643 commit c49f46e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion browse/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -786,7 +786,7 @@ def save_schema(
try:
this_repo = git.Repo(search_parent_directories=True)
git_sha = this_repo.head.object.hexsha
except git.InvalidGitRepositoryError:
except (ValueError, git.InvalidGitRepositoryError):
git_sha = "unknown"

if release_tag:
Expand Down

0 comments on commit c49f46e

Please sign in to comment.