Skip to content

Commit

Permalink
fix???
Browse files Browse the repository at this point in the history
  • Loading branch information
caseyjlaw committed Oct 23, 2024
1 parent b217025 commit de95199
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion version.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,11 @@ def get_git_version(abbrev=7):

# First try to get the current version using “git describe”.

version = call_git_describe(abbrev).decode('UTF-8')
gitdesc = call_git_describe(abbrev)
if gitdesc is not None:
version = call_git_describe(abbrev).decode('UTF-8')
else:
version = 'test'
if is_dirty():
version += "-dirty"

Expand Down

0 comments on commit de95199

Please sign in to comment.