py/runtime: mp_resume: Fix exception handling for nanbox port.

This commit is contained in:
Paul Sokolovsky 2016-11-15 01:40:23 +03:00
parent 79d996a57b
commit a0b2c6ad32
1 changed files with 1 additions and 1 deletions

View File

@ -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
nlr_pop();
return MP_VM_RETURN_YIELD;
} else {
*ret_val = nlr.ret_val;
*ret_val = MP_OBJ_FROM_PTR(nlr.ret_val);
return MP_VM_RETURN_EXCEPTION;
}
}