-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
exceptions: raise generic exceptions properly #7157
Comments
I took a look at this issue and I am posting here my findings. I used It yielded 16 matches in total. all of them seem fine and produce a meaningful message. I reproduced only one (there is a note next to it in the list) and others seem fine from looking at the code.
|
I wonder if those errors didn't migrate to our other projects like |
In #7120 we had ambiguous error, because the raised
FileNotFoundError
did not provide any context. I think it would be more informative if we would be raising generic errors with proper messages - like in #7156.EDIT:
resolving this issue would require finding in the codebase where are we using
raise
with generic exceptions without any arguments and providing relevant messages.The text was updated successfully, but these errors were encountered: