Merge pull request #4509 from lesamouraipourpre/time-error-param

Add a missing parameter to an error message (Fixes #4505)
This commit is contained in:
Scott Shawcroft 2021-03-30 10:55:08 -07:00 committed by GitHub
commit 7471e978bb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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) {