Skip to content

Commit

Permalink
fix grammar in error message (#5322)
Browse files Browse the repository at this point in the history
  • Loading branch information
alex authored Jul 19, 2020
1 parent 084da16 commit 31359f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cryptography/hazmat/backends/openssl/backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -743,7 +743,7 @@ def _x509_check_signature_params(self, private_key, algorithm):
elif not isinstance(private_key, (rsa.RSAPrivateKey, dsa.DSAPrivateKey,
ec.EllipticCurvePrivateKey)):
raise TypeError(
"Key must be rsa, dsa, ec, ed25519 or ed448 private key."
"Key must be an rsa, dsa, ec, ed25519, or ed448 private key."
)
elif not isinstance(algorithm, hashes.HashAlgorithm):
raise TypeError("Algorithm must be a registered hash algorithm.")
Expand Down

0 comments on commit 31359f3

Please sign in to comment.