Skip to content

Commit c88bc9e

Browse files
committed
fixup! sdk pylint
1 parent c70eb4f commit c88bc9e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sdk/mx.sdk/mx_sdk_vm.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -573,7 +573,7 @@ def base_jdk(stage1=True):
573573
try:
574574
# attempt to initialize JVMCI related attributes
575575
jdk_enables_jvmci_by_default(_base_jdk_final)
576-
except Exception as e:
576+
except AssertionError as e:
577577
assert "Could not execute" in e.args[0]
578578

579579
# ._probe_jvmci_info() and .get_modules() need a working java launcher, which might not be the case for FINAL_STAGE_JAVA_HOME.
@@ -600,7 +600,7 @@ def _probe_jvmci_info(jdk, attribute_name):
600600
sink = lambda x: x
601601
rc = mx.run([jdk.java, '-XX:+UnlockExperimentalVMOptions', '-XX:+PrintFlagsFinal', '-version'], out=out, err=sink, nonZeroIsFatal=False)
602602
if rc != 0:
603-
raise Exception(f"Could not execute {jdk.java}")
603+
raise AssertionError(f"Could not execute {jdk.java}")
604604
enableJVMCI = False
605605
jvmciThreadsPerNativeLibraryRuntime = None
606606
for line in out.lines:

0 commit comments

Comments
 (0)