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
sqrt raises AttributeError on unexpected input #7961
Comments
|
Same problem with sympy integers:
Reported in matplotlib/matplotlib#13106. A better error message would really help to find out what's going on. |
+1 from me on improving the error message. Raising I'm not sure if we should also try and check is the attribute is callable. Perhaps chaining the exception would be useful here |
ENH: chain additional exception on ufunc method lookup error
I expected a TypeError or ValueError, and spent quite some time trying to understand why
sqrt
was "missing"...The text was updated successfully, but these errors were encountered: