1 parent 12401f3 commit 2503b59Copy full SHA for 2503b59
1 file changed
stmhal/moduos.c
@@ -107,7 +107,7 @@ STATIC mp_obj_t os_getcwd(void) {
107
FRESULT res = f_getcwd(buf, sizeof buf);
108
109
if (res != FR_OK) {
110
- 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])));
111
}
112
113
return mp_obj_new_str(buf, strlen(buf), false);
0 commit comments