We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 35ad997 + ffbbb4d commit f5b7288Copy full SHA for f5b7288
scripts/otel_packaging.py
@@ -14,6 +14,7 @@
14
15
import os
16
import subprocess
17
+from subprocess import CalledProcessError
18
19
import tomli
20
@@ -28,12 +29,18 @@ def get_instrumentation_packages():
28
29
if not os.path.isdir(pkg_path):
30
continue
31
- version = subprocess.check_output(
32
- "hatch version",
33
- shell=True,
34
- cwd=pkg_path,
35
- universal_newlines=True,
36
- )
+ try:
+ version = subprocess.check_output(
+ "hatch version",
+ shell=True,
+ cwd=pkg_path,
37
+ universal_newlines=True,
38
+ )
39
+ except CalledProcessError as exc:
40
+ print(f"Could not get hatch version from path {pkg_path}")
41
+ print(exc.output)
42
+ raise exc
43
+
44
pyproject_toml_path = os.path.join(pkg_path, "pyproject.toml")
45
46
with open(pyproject_toml_path, "rb") as file:
0 commit comments