Skip to content

Commit ba5c991

Browse files
bpo-136134: Clarify comment on handling unsupported hash in CRAM-MD5
1 parent d2cc372 commit ba5c991

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Lib/smtplib.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -752,7 +752,7 @@ def login(self, user, password, *, initial_response_ok=True):
752752
last_exception = e
753753
except SMTPAuthHashUnsupportedError as e:
754754
# Some environments (e.g., FIPS) disable certain hashing algorithms like MD5,
755-
# which are required by CRAM-MD5. This raises a ValueError when trying to use HMAC.
755+
# which are required by CRAM-MD5. This raises a SMTPAuthHashUnsupportedError when trying to use HMAC.
756756
# If this happens, we catch the exception and continue trying the next auth method.
757757
last_exception = e
758758
continue

0 commit comments

Comments
 (0)