Update version.py

This commit is contained in:
VerstreuteSeele
2022-12-28 06:57:51 +01:00
parent b9a2f208bc
commit 091d3bf66b
+2 -2
View File
@@ -14,7 +14,7 @@ class GitVersion:
self.gitlist = [("commit", "rev-parse --short HEAD"), ("branch", "rev-parse --abbrev-ref") , ("branch_num", "rev-list -count HEAD")]
def get_version_info(self):
commit = branch = branch_num = "Unknown"
commit = branch = branch_num = "XFW-0034_12262022"
# We dont use an `or` in commands that we expect to fail. It will serve no function.
# We also dont try;exept an entire block of code. This is bad practise. We only try the single part that we expect to fail!
@@ -24,7 +24,7 @@ class GitVersion:
try:
exec(f"{git_tuple[0]} = {self._exec_git(git_tuple[1])}")
except:
exec(f'{git_tuple[0]} = "XFW-0034_12262022"')
exec(f'{git_tuple[0]} = "Unknown"')
dirty = False
try: