From 503089ea9d6b358f1a06ad1f164561b7cf11c742 Mon Sep 17 00:00:00 2001 From: Damien George Date: Fri, 7 Oct 2016 14:05:15 +1100 Subject: unix: Use mp_raise_OSError helper function. --- unix/modtermios.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'unix/modtermios.c') diff --git a/unix/modtermios.c b/unix/modtermios.c index 20f824a7f..2fef4f223 100644 --- a/unix/modtermios.c +++ b/unix/modtermios.c @@ -35,7 +35,7 @@ #define RAISE_ERRNO(err_flag, error_val) \ { if (err_flag == -1) \ - { nlr_raise(mp_obj_new_exception_arg1(&mp_type_OSError, MP_OBJ_NEW_SMALL_INT(error_val))); } } + { mp_raise_OSError(error_val); } } STATIC mp_obj_t mod_termios_tcgetattr(mp_obj_t fd_in) { struct termios term; -- cgit v1.2.3