Skip to content

Commit 854d7b9

Browse files
committed
Fix PGO build in bisection
1 parent 678b9c5 commit 854d7b9

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

mx.graalpython/mx_graalpython.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -281,10 +281,7 @@ def libpythonvm_build_args():
281281
):
282282
vc = SUITE.vc
283283
commit = str(vc.tip(SUITE.dir)).strip()
284-
try:
285-
branch = str(vc.active_branch(SUITE.dir)).strip()
286-
except Exception: # pylint: disable=broad-except
287-
branch = "master"
284+
branch = str(vc.active_branch(SUITE.dir, abortOnError=False) or 'master').strip()
288285

289286
if script := os.environ.get("ARTIFACT_DOWNLOAD_SCRIPT"):
290287
# This is always available in the GraalPy CI

0 commit comments

Comments
 (0)