diff options
Diffstat (limited to 'py/modthread.c')
-rw-r--r-- | py/modthread.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/py/modthread.c b/py/modthread.c index 24b94f1c84..c358cdf9ed 100644 --- a/py/modthread.c +++ b/py/modthread.c @@ -93,7 +93,7 @@ STATIC mp_obj_t thread_lock_acquire(size_t n_args, const mp_obj_t *args) { self->locked = true; return mp_const_true; } else { - nlr_raise(mp_obj_new_exception_arg1(&mp_type_OSError, MP_OBJ_NEW_SMALL_INT(-ret))); + mp_raise_OSError(-ret); } #endif } |