fix for unknown branch

This commit is contained in:
bobokun 2023-06-16 19:15:40 -04:00
parent a42db58911
commit 99504fbca9
No known key found for this signature in database
GPG key ID: B73932169607D927
2 changed files with 3 additions and 1 deletions

View file

@ -1 +1 @@
4.0.1
4.0.2-develop1

View file

@ -370,6 +370,8 @@ with open(os.path.join(os.path.dirname(os.path.abspath(__file__)), "VERSION")) a
version = util.parse_version(line)
break
branch = util.guess_branch(version, env_version, git_branch)
if branch is None:
branch = "Unknown"
version = (version[0].replace("develop", branch), version[1].replace("develop", branch), version[2])