From 091d3bf66bf70926e8813275f374e452f3da2934 Mon Sep 17 00:00:00 2001 From: VerstreuteSeele Date: Wed, 28 Dec 2022 06:57:51 +0100 Subject: [PATCH] Update version.py --- scripts/version.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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: