Skip to content

Commit 31359f3

Browse files
authored
fix grammar in error message (#5322)
1 parent 084da16 commit 31359f3

File tree

1 file changed

+1
-1
lines changed
  • src/cryptography/hazmat/backends/openssl

1 file changed

+1
-1
lines changed

src/cryptography/hazmat/backends/openssl/backend.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -743,7 +743,7 @@ def _x509_check_signature_params(self, private_key, algorithm):
743743
elif not isinstance(private_key, (rsa.RSAPrivateKey, dsa.DSAPrivateKey,
744744
ec.EllipticCurvePrivateKey)):
745745
raise TypeError(
746-
"Key must be rsa, dsa, ec, ed25519 or ed448 private key."
746+
"Key must be an rsa, dsa, ec, ed25519, or ed448 private key."
747747
)
748748
elif not isinstance(algorithm, hashes.HashAlgorithm):
749749
raise TypeError("Algorithm must be a registered hash algorithm.")

0 commit comments

Comments
 (0)