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

fix: Fixed raising of keyError() to properly include path_type in the error message #27965

Merged
merged 2 commits into from
Jan 22, 2024

Conversation

Sai-Suraj-27
Copy link
Contributor

PR Description

In the following line, path_type is passed separately as an argument while raising KeyError()
https://github.com/unifyai/ivy/blob/e2a250393aea9f527466584a885c99c36cf9b1cb/ivy/functional/frontends/jax/numpy/mathematical_functions.py#L318
It should be raise KeyError("Path name %s not found" % path_type) for correct output.

Related Issue

Closes #27964

Checklist

  • Did you add a function?
  • Did you add the tests?
  • Did you run your tests and are your tests passing?
  • Did pre-commit not fail on any check?
  • Did you follow the steps we provided?

Socials

@ivy-leaves ivy-leaves added the JAX Frontend Developing the JAX Frontend, checklist triggered by commenting add_frontend_checklist label Jan 20, 2024
Copy link
Contributor

@KareemMAX KareemMAX left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we can change this to f"" format?

@KareemMAX KareemMAX merged commit bb787ce into Transpile-AI:main Jan 22, 2024
137 of 141 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
JAX Frontend Developing the JAX Frontend, checklist triggered by commenting add_frontend_checklist
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Incorrectly passed arguments when raising KeyError()
4 participants