Skip to content

Commit 7bbba40

Browse files
Merge pull request #25473 from adamjstewart:build/no-git
PiperOrigin-RevId: 707169772
2 parents 7de9eb2 + 1afed91 commit 7bbba40

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

build/tools/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ def get_githash():
222222
capture_output=True,
223223
check=True,
224224
).stdout.strip()
225-
except OSError:
225+
except (subprocess.CalledProcessError, OSError):
226226
return ""
227227

228228
def _parse_string_as_bool(s):

0 commit comments

Comments
 (0)