From 138e1a3b93bfad01cd6ab79c4dd685f4deca4ead Mon Sep 17 00:00:00 2001 From: Viet Pham Date: Tue, 10 Jan 2017 16:09:00 +0700 Subject: [PATCH] fix #2116 Ignore no password exception for email account on smtp setup (#2555) --- frappe/email/smtp.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frappe/email/smtp.py b/frappe/email/smtp.py index 3de1830b69..8daedc567c 100644 --- a/frappe/email/smtp.py +++ b/frappe/email/smtp.py @@ -81,7 +81,7 @@ def get_default_outgoing_email_account(raise_exception_not_set=True): ''' email_account = _get_email_account({"enable_outgoing": 1, "default_outgoing": 1}) if email_account: - email_account.password = email_account.get_password() + email_account.password = email_account.get_password(raise_exception=False) if not email_account and frappe.conf.get("mail_server"): # from site_config.json