| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
|
It's slightly more specific than an AttributeError, but I'm not sure what the user is supposed to do with this information? |
Sorry, something went wrong.
|
I agree the error message should be something more actionable e.g. "not a valid categorical unit" or similar |
Sorry, something went wrong.
|
How about now? I think this is a small improvement avoids the user having to work out where and why the attribute error was thrown, immediately saying "the problem was with the unit passed to a categorical converter". |
Sorry, something went wrong.
There was a problem hiding this comment.
Slightly concerned since ._mapping is a private attribute so I don't quite know what users can do to fix this error.
Sorry, something went wrong.
|
It is at least a less-confusing error message that the type error (for the same private attribute) that they are getting now. |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
PR Summary
xref #11095. Provide a nicer error message if the user tries to set a unit without _mapping to a categorical converter.
PR Checklist