From 1afed917fba44927d9eee23918b9135218dff213 Mon Sep 17 00:00:00 2001 From: "Adam J. Stewart" Date: Fri, 13 Dec 2024 10:02:05 -0500 Subject: [PATCH] get_githash: fix support for missing git --- build/tools/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build/tools/utils.py b/build/tools/utils.py index 5d7c8e0f20b2..1a4b26fd3d4a 100644 --- a/build/tools/utils.py +++ b/build/tools/utils.py @@ -222,7 +222,7 @@ def get_githash(): capture_output=True, check=True, ).stdout.strip() - except OSError: + except (subprocess.CalledProcessError, OSError): return "" def _parse_string_as_bool(s):