fix(email): error object is not json parseable

This commit is contained in:
hasnain2808@gmail.com 2021-01-12 15:29:37 +05:30
parent 121dc23dca
commit 58eeefe993

View file

@ -210,7 +210,7 @@ class EmailAccount(Document):
elif not in_receive and any(map(lambda t: t in message, auth_error_codes)):
self.throw_invalid_credentials_exception()
else:
frappe.throw(e)
frappe.throw(cstr(e))
except socket.error:
if in_receive: