From a0b2c6ad32230d679260eb2a545e5272234254ff Mon Sep 17 00:00:00 2001 From: Paul Sokolovsky Date: Tue, 15 Nov 2016 01:40:23 +0300 Subject: [PATCH] py/runtime: mp_resume: Fix exception handling for nanbox port. --- py/runtime.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/py/runtime.c b/py/runtime.c index 4bab03b80c..0ecccbd874 100644 --- a/py/runtime.c +++ b/py/runtime.c @@ -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; } }