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):