diff --git a/scripts/version.py b/scripts/version.py index 40d7c2fbb..1a67cf56f 100644 --- a/scripts/version.py +++ b/scripts/version.py @@ -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: