8000 Update error message for cryptography package (#769) · kevinvoid/PyMySQL@a3c0631 · GitHub
[go: up one dir, main page]

Skip to content

Commit a3c0631

Browse files
srcolemethane
authored andcommitted
Update error message for cryptography package (PyMySQL#769)
1 parent 60b6dfe commit a3c0631

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pymysql/_auth.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ def sha2_rsa_encrypt(password, salt, public_key):
139139
Used for sha256_password and caching_sha2_password.
140140
"""
141141
if not _have_cryptography:
142-
raise RuntimeError("cryptography is required for sha256_password or caching_sha2_password")
142+
raise RuntimeError("'cryptography' package is required for sha256_password or caching_sha2_password auth methods")
143143
message = _xor_password(password + b'\0', salt)
144144
rsa_key = serialization.load_pem_public_key(public_key, default_backend())
145145
return rsa_key.encrypt(

0 commit comments

Comments
 (0)
0