diff options
author | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2016-05-29 20:02:16 +0300 |
---|---|---|
committer | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2016-05-29 20:04:32 +0300 |
commit | 2503b595923d0d6b10c0a893ec95d65dacc25ace (patch) | |
tree | 7f8a13fe39df448568913f008c8c80cc5c72752a | |
parent | 12401f337e9accbf69836f39e536ec33c3e4fa4b (diff) | |
download | micropython-2503b595923d0d6b10c0a893ec95d65dacc25ace.tar.gz micropython-2503b595923d0d6b10c0a893ec95d65dacc25ace.zip |
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.
-rw-r--r-- | stmhal/moduos.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |