Skip to content

Make X509StoreContextError's message friendlier #1133

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

Merged
merged 4 commits into from
Jul 7, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
OpenSSL/crypto: blacken
Signed-off-by: William Woodruff <[email protected]>
  • Loading branch information
woodruffw committed Jul 6, 2022
commit cff26bccefb488cbcd43b3d65c0026eccc2f0fdc
4 changes: 3 additions & 1 deletion src/OpenSSL/crypto.py
Original file line number Diff line number Diff line change
Expand Up @@ -1776,7 +1776,9 @@ class X509StoreContextError(Exception):
:type certificate: :class:`X509`
"""

def __init__(self, message: str, errors: List[Any], certificate: X509) -> None:
def __init__(
self, message: str, errors: List[Any], certificate: X509
) -> None:
super(X509StoreContextError, self).__init__(message)
self.errors = errors
self.certificate = certificate
Expand Down