py/objgenerator: Use mp_obj_new_exception_arg1 to make StopIteration.

pull/5563/head
Damien George 2020-01-23 13:01:39 +11:00
rodzic edbb73a411
commit edc7a8bf1d
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -243,7 +243,7 @@ STATIC mp_obj_t gen_resume_and_raise(mp_obj_t self_in, mp_obj_t send_value, mp_o
if (ret == mp_const_none || ret == MP_OBJ_STOP_ITERATION) {
return MP_OBJ_STOP_ITERATION;
} else {
nlr_raise(mp_obj_new_exception_args(&mp_type_StopIteration, 1, &ret));
nlr_raise(mp_obj_new_exception_arg1(&mp_type_StopIteration, ret));
}
case MP_VM_RETURN_YIELD: