Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions crates/vm/src/stdlib/_ctypes/function.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1697,7 +1697,7 @@ fn build_result(
}

// Convert the foreign-call result to a Python object
let mut result = convert_raw_result(&call_result, call_info, vm)?;
let result = convert_raw_result(&call_result, call_info, vm)?;

// Apply errcheck if set
if let Some(errcheck) = zelf.errcheck.read().as_ref() {
Expand All @@ -1707,7 +1707,7 @@ fn build_result(
let checked = errcheck.call((result_obj, func_obj, args_tuple.clone()), vm)?;
// Returning the original args tuple requests normal result processing.
if !checked.is(&args_tuple) {
result = Some(checked);
return Ok(checked);
}
}

Expand Down
Loading