Skip to content

Commit e40da5e

Browse files
committed
check function result first, then convert to Python object
1 parent edd0156 commit e40da5e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/modules/TruffleCextBuiltins.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -542,7 +542,7 @@ public Object execute(VirtualFrame frame) {
542542
arguments[i] = toSulongNode.execute(frameArgs[i + PArguments.USER_ARGUMENTS_OFFSET]);
543543
}
544544
try {
545-
return fromNative(checkFunctionResult(asPythonObjectNode.execute(ForeignAccess.sendExecute(executeNode, callable, arguments))));
545+
return fromNative(asPythonObjectNode.execute(checkFunctionResult(ForeignAccess.sendExecute(executeNode, callable, arguments))));
546546
} catch (UnsupportedTypeException | ArityException | UnsupportedMessageException e) {
547547
CompilerDirectives.transferToInterpreter();
548548
throw new RuntimeException(e.toString());

0 commit comments

Comments
 (0)