Skip to content

Commit ff19b3a

Browse files
author
Michal Medvecky
committed
fix type error incorrect
1 parent 763a40d commit ff19b3a

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/nodes/bytecode_dsl/PBytecodeDSLRootNode.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3762,9 +3762,9 @@ private static void raiseIfNoException(Node inliningTarget, Object clause, Valid
37623762
raiseIfNoExceptionTuples(inliningTarget, clause, isValidException, isSubtypeNode, getItemNode);
37633763
} else {
37643764
if (!isValidException.execute(clause)) {
3765-
throw PRaiseNode.raiseStatic(inliningTarget, PythonErrorType.TypeError, ErrorMessages.CATCHING_CLS_NOT_ALLOWED);
3765+
throw PRaiseNode.raiseStatic(inliningTarget, TypeError, ErrorMessages.CATCHING_CLS_NOT_ALLOWED);
37663766
} else if (isSubtypeNode.execute(clause, PythonBuiltinClassType.PBaseExceptionGroup)) {
3767-
throw PRaiseNode.raiseStatic(inliningTarget, PythonErrorType.TypeError, ErrorMessages.NO_EXCEPTION_GROUPS_IN_EXCEPT_STAR);
3767+
throw PRaiseNode.raiseStatic(inliningTarget, TypeError, ErrorMessages.NO_EXCEPTION_GROUPS_IN_EXCEPT_STAR);
37683768
}
37693769
}
37703770
}
@@ -3791,7 +3791,6 @@ public static boolean makePythonGroup(VirtualFrame frame,
37913791
@Shared @Cached ValidExceptionNode isValidException,
37923792
@Shared @Cached IsSubtypeNode isSubtypeNode,
37933793
@Exclusive @Cached SequenceStorageNodes.GetItemScalarNode getItemNode,
3794-
@Cached("createFor($node)") IndirectCallData indirectCallData,
37953794
@Shared @Cached BaseExceptionGroupBuiltins.BaseExceptionGroupNode exceptionGroupNode,
37963795
@Cached InlinedConditionProfile isExceptionGroup,
37973796
@Cached PyObjectCallMethodObjArgs callSplit,

0 commit comments

Comments
 (0)