From b079c07f7df2e8640c36d689704b23227412b2d5 Mon Sep 17 00:00:00 2001 From: R David Murray Date: Sat, 24 Dec 2016 21:32:26 -0500 Subject: #25591: improve imap tests. Patch by Maciej Szulik. --- Lib/imaplib.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Lib/imaplib.py') diff --git a/Lib/imaplib.py b/Lib/imaplib.py index 4e8a4bb6fa..2f7e9331fb 100644 --- a/Lib/imaplib.py +++ b/Lib/imaplib.py @@ -411,7 +411,7 @@ class IMAP4: self.literal = _Authenticator(authobject).process typ, dat = self._simple_command('AUTHENTICATE', mech) if typ != 'OK': - raise self.error(dat[-1]) + raise self.error(dat[-1].decode('utf-8', 'replace')) self.state = 'AUTH' return typ, dat -- cgit v1.2.1