From 7fe2c02bcec6c21bd153e2b2820d848a82f52596 Mon Sep 17 00:00:00 2001 From: James Stevenson Date: Wed, 27 Nov 2024 09:39:39 -0500 Subject: [PATCH] cleanup --- setup.py | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/setup.py b/setup.py index 4e51c34b..ba68f140 100644 --- a/setup.py +++ b/setup.py @@ -10,13 +10,9 @@ class VrsSubmoduleFetchError(Exception): def get_vrs_submodule_info(): """Retrieve the commit hash and tag from the vrs submodule.""" try: - try: - tag = subprocess.check_output( - ["git", "describe", "--tags", "--abbrev=0"], cwd="submodules/vrs", text=True - ).strip() - except subprocess.CalledProcessError: - raise VrsSubmoduleFetchError - return tag + return subprocess.check_output( + ["git", "describe", "--tags", "--abbrev=0"], cwd="submodules/vrs", text=True + ).strip() except Exception as e: raise VrsSubmoduleFetchError from e