Skip to content
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

UserWarnings are not Errors #238

Open
1 of 3 tasks
brynpickering opened this issue Aug 16, 2023 · 0 comments
Open
1 of 3 tasks

UserWarnings are not Errors #238

brynpickering opened this issue Aug 16, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@brynpickering
Copy link
Contributor

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

@brynpickering brynpickering added the bug Something isn't working label Aug 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant