Skip to content

Commit a0b2c6a

Browse files
committed
py/runtime: mp_resume: Fix exception handling for nanbox port.
1 parent 79d996a commit a0b2c6a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

py/runtime.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1201,7 +1201,7 @@ mp_vm_return_kind_t mp_resume(mp_obj_t self_in, mp_obj_t send_value, mp_obj_t th
12011201
nlr_pop();
12021202
return MP_VM_RETURN_YIELD;
12031203
} else {
1204-
*ret_val = nlr.ret_val;
1204+
*ret_val = MP_OBJ_FROM_PTR(nlr.ret_val);
12051205
return MP_VM_RETURN_EXCEPTION;
12061206
}
12071207
}

0 commit comments

Comments
 (0)