Skip to content

Commit 2503b59

Browse files
committed
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.
1 parent 12401f3 commit 2503b59

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

stmhal/moduos.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ STATIC mp_obj_t os_getcwd(void) {
107107
FRESULT res = f_getcwd(buf, sizeof buf);
108108

109109
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])));
110+
nlr_raise(mp_obj_new_exception_arg1(&mp_type_OSError, MP_OBJ_NEW_SMALL_INT(fresult_to_errno_table[res])));
111111
}
112112

113113
return mp_obj_new_str(buf, strlen(buf), false);

0 commit comments

Comments
 (0)