Merge pull request #8596 from ruchamahabal/email_fix

fix(Email): poplib.error_proto exception
This commit is contained in:
mergify[bot] 2019-11-14 05:35:55 +00:00 committed by GitHub
commit 1ff5089fec
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -298,7 +298,7 @@ class EmailServer:
"Connection timed out",
)
for message in messages:
if message in strip(cstr(e.message)) or message in strip(cstr(getattr(e, 'strerror', ''))):
if message in strip(cstr(e)) or message in strip(cstr(getattr(e, 'strerror', ''))):
return True
return False