mirror of
https://github.com/python/cpython.git
synced 2025-08-22 09:45:06 +00:00
parent
e9ae5f9b16
commit
b079c07f7d
2 changed files with 331 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue