Skip to content

Commit 86d9f88

Browse files
committed
Skip interop exceptions when popping exception state
1 parent c7ae820 commit 86d9f88

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/nodes/bytecode/PBytecodeRootNode.java

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2866,11 +2866,10 @@ private PException popExceptionState(Object[] arguments, Object savedException,
28662866
PException localException = null;
28672867
if (savedException instanceof PException) {
28682868
localException = (PException) savedException;
2869+
PArguments.setException(arguments, localException);
2870+
} else if (savedException == null) {
2871+
PArguments.setException(arguments, outerException);
28692872
}
2870-
if (savedException == null) {
2871-
savedException = outerException;
2872-
}
2873-
PArguments.setException(arguments, (PException) savedException);
28742873
return localException;
28752874
}
28762875

0 commit comments

Comments
 (0)