From f8f2b6845c700bafb56167406ce1aa2a4f879ca0 Mon Sep 17 00:00:00 2001 From: domna Date: Fri, 24 Nov 2023 16:47:56 +0100 Subject: [PATCH] Don't throw error if version tag is not present --- pynxtools/_build_wrapper.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pynxtools/_build_wrapper.py b/pynxtools/_build_wrapper.py index 341f7dce2..d7788860d 100644 --- a/pynxtools/_build_wrapper.py +++ b/pynxtools/_build_wrapper.py @@ -41,7 +41,7 @@ def get_vcs_version(tag_match="*[0-9]*") -> Optional[str]: def _write_version_to_metadata(): version = get_vcs_version() if version is None or not version: - raise ValueError("Could not determine version from nexus_definitions") + return with open( os.path.join(os.path.dirname(__file__), "nexus-version.txt"),