Add a missing parameter to an error message (Fixes #4505)

This commit is contained in:
James Carr 2021-03-29 23:03:14 +01:00
parent 840373f5c2
commit 65759622ea
1 changed files with 1 additions and 1 deletions

View File

@ -279,7 +279,7 @@ STATIC mp_obj_t time_mktime(mp_obj_t t) {
mp_obj_tuple_get(t, &len, &elem);
if (len != 9) {
mp_raise_TypeError_varg(translate("function takes %d positional arguments but %d were given"), 9);
mp_raise_TypeError_varg(translate("function takes %d positional arguments but %d were given"), 9, len);
}
if (mp_obj_get_int(elem[0]) < 2000) {