Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
jsstevenson committed Nov 27, 2024
1 parent 412012d commit 7fe2c02
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 7fe2c02

Please sign in to comment.