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
Except all errors when checking for valid unit #424
Conversation
Signed-off-by: F.N. Claessen <felix@seita.nl>
Signed-off-by: F.N. Claessen <felix@seita.nl>
Signed-off-by: F.N. Claessen <felix@seita.nl>
Can you argue why this use case is different to the norm and deserves the |
Pull Request Test Coverage Report for Build 2239847775
💛 - Coveralls |
Because this is the third time I've encountered a different error thrown by pint when trying to parse a string to a Quantity. I could add the newly found |
Is the code (docstring) of If not, and you want to stop worrying, then add a comment and move on, indeed. |
Signed-off-by: F.N. Claessen <felix@seita.nl>
Signed-off-by: F.N. Claessen <felix@seita.nl>
* Add test case that lets pint throw an AttributeError Signed-off-by: F.N. Claessen <felix@seita.nl> * Except all errors when checking for unit validity using pint Signed-off-by: F.N. Claessen <felix@seita.nl> * Changelog entry Signed-off-by: F.N. Claessen <felix@seita.nl> * Add inline note Signed-off-by: F.N. Claessen <felix@seita.nl> * Update patch release date Signed-off-by: F.N. Claessen <felix@seita.nl>
I believe this is a good use case for not only catching specific exceptions.