Skip to content

Commit 375210d

Browse files
committed
Update interceptInternalException override
1 parent 797754f commit 375210d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/compiler/bytecode_dsl/RootNodeCompiler.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -4268,7 +4268,7 @@ private void emitTryExceptElse(StmtTy.Try node) {
42684268
b.beginBlock(); // try
42694269
SourceRange bareExceptRange = null;
42704270
for (ExceptHandlerTy h : node.handlers) {
4271-
boolean newStatement = beginSourceSection(h, b);
4271+
boolean newStatement = beginSourceSection(h, b);
42724272
if (bareExceptRange != null) {
42734273
ctx.errorCallback.onError(ErrorType.Syntax, currentLocation, "default 'except:' must be last");
42744274
}

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -711,7 +711,7 @@ public static void perform() {
711711
}
712712

713713
@Override
714-
public Throwable interceptInternalException(Throwable throwable, BytecodeNode bytecodeNode, int bci) {
714+
public Throwable interceptInternalException(Throwable throwable, VirtualFrame frame, BytecodeNode bytecodeNode, int bci) {
715715
if (throwable instanceof StackOverflowError soe) {
716716
PythonContext.get(this).ensureGilAfterFailure();
717717
return ExceptionUtils.wrapJavaException(soe, this, factory.createBaseException(RecursionError, ErrorMessages.MAXIMUM_RECURSION_DEPTH_EXCEEDED, new Object[]{}));

0 commit comments

Comments
 (0)