UserWarnings are not Errors
Opened this issue · 0 comments
brynpickering commented
What happened?
The most common error type that is raised in the code is a UserWarning
. This class should not be used as an exception, but as a type of warning for e.g. warnings.warn("my message", UserWarning)
. Instead the appropriate exception class should be used, e.g. ValueError
, KeyError
, TypeError
... Or a PamError
should be created which subclasses Exception
.
Which operating systems have you used?
- macOS
- Windows
- Linux
Version
0.2.5-dev
Relevant log output
No response