From 2503b595923d0d6b10c0a893ec95d65dacc25ace Mon Sep 17 00:00:00 2001 From: Paul Sokolovsky Date: Sun, 29 May 2016 20:02:16 +0300 Subject: [PATCH] stmhal/moduos: getcwd(): Use mp_obj_new_exception_arg1(). Argument types were converted, but old function call of mp_obj_new_exception_msg_varg() remained. --- stmhal/moduos.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stmhal/moduos.c b/stmhal/moduos.c index 310b8d44fb..52d0a58425 100644 --- a/stmhal/moduos.c +++ b/stmhal/moduos.c @@ -107,7 +107,7 @@ STATIC mp_obj_t os_getcwd(void) { FRESULT res = f_getcwd(buf, sizeof buf); if (res != FR_OK) { - nlr_raise(mp_obj_new_exception_msg_varg(&mp_type_OSError, MP_OBJ_NEW_SMALL_INT(fresult_to_errno_table[res]))); + nlr_raise(mp_obj_new_exception_arg1(&mp_type_OSError, MP_OBJ_NEW_SMALL_INT(fresult_to_errno_table[res]))); } return mp_obj_new_str(buf, strlen(buf), false);