Skip to content

Commit 0a69693

Browse files
committed
Replace PGuards.isClass by PGuards.isPythonClass
1 parent c733980 commit 0a69693

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/objects/cext/hpy/GraalHPyContextFunctions.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -923,7 +923,6 @@ Object execute(Object[] arguments,
923923
@Cached IsSubtypeNode isExcValueSubtypeNode,
924924
@Cached GetClassNode getClassNode,
925925
@Cached PCallHPyFunction callFromStringNode,
926-
@CachedLibrary(limit = "1") InteropLibrary interopLib,
927926
@Cached CallNode callExceptionConstructorNode,
928927
@Cached PRaiseNode raiseNode,
929928
@Cached HPyTransformExceptionToNativeNode transformExceptionToNativeNode,
@@ -933,7 +932,7 @@ Object execute(Object[] arguments,
933932
checkArity(arguments, 3);
934933
GraalHPyContext context = asContextNode.execute(arguments[0]);
935934
Object errTypeObj = asPythonObjectNode.execute(context, arguments[1]);
936-
if (!(PGuards.isClass(errTypeObj, interopLib) && isSubtypeNode.execute(errTypeObj, PythonBuiltinClassType.PBaseException))) {
935+
if (!(PGuards.isPythonClass(errTypeObj) && isSubtypeNode.execute(errTypeObj, PythonBuiltinClassType.PBaseException))) {
937936
return raiseNode.raise(SystemError, "exception %s not a BaseException subclass", errTypeObj);
938937
}
939938
try {

0 commit comments

Comments
 (0)