]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-91099: fix[imaplib]: call Exception with string instance (#31823)
authorFlorian Best <spaceone@users.noreply.github.com>
Tue, 2 Jun 2026 20:42:04 +0000 (22:42 +0200)
committerGitHub <noreply@github.com>
Tue, 2 Jun 2026 20:42:04 +0000 (16:42 -0400)
commit29805f00a1b65163230d17584c30e2b955086abb
tree2568df228675e9ba5c9f1912c842268ea6c8af04
parent50fe49c879af352914da3baa40c7fd1fb170028c
gh-91099: fix[imaplib]: call Exception with string instance (#31823)

* bpo-46943: fix[imaplib]: call Exception with string instance

Adjust the behavior of 'login' to be similar to `authenticate()`,
where self.error is called with a str() instance.

Co-authored-by: Oleg Iarygin <oleg@arhadthedev.net>
Lib/imaplib.py
Lib/test/test_imaplib.py
Misc/NEWS.d/next/Library/2023-02-26-14-07-18.gh-issue-91099._QPbEL.rst [new file with mode: 0644]