Skip to content

Commit dba135f

Browse files
committed
temp - debug read the docs
1 parent eaa64c0 commit dba135f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/websockets/version.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ def get_version(tag: str) -> str:
5151
try:
5252
description = subprocess.run(
5353
["git", "describe", "--dirty", "--tags", "--long"],
54-
capture_output=True,
54+
# capture_output=True,
5555
cwd=root_dir,
5656
timeout=1,
5757
check=True,
@@ -63,7 +63,7 @@ def get_version(tag: str) -> str:
6363
subprocess.CalledProcessError,
6464
subprocess.TimeoutExpired,
6565
):
66-
pass
66+
raise
6767
else:
6868
description_re = r"[0-9.]+-([0-9]+)-(g[0-9a-f]{7,}(?:-dirty)?)"
6969
match = re.fullmatch(description_re, description)

0 commit comments

Comments
 (0)