Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing parameter in Error Message #4505

Closed
lesamouraipourpre opened this issue Mar 28, 2021 · 1 comment · Fixed by #4509
Closed

Missing parameter in Error Message #4505

lesamouraipourpre opened this issue Mar 28, 2021 · 1 comment · Fixed by #4509

Comments

@lesamouraipourpre
Copy link

mp_raise_TypeError_varg(translate("function takes %d positional arguments but %d were given"), 9);

If I'm reading the code correctly len should be passed into the error message as well as 9.
FWIW my C skills are very rusty.

@tannewt
Copy link
Member

tannewt commented Mar 29, 2021

You are right! It should be 9, len);. Want to make a PR? Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants