fix #2116 Ignore no password exception for email account on smtp setup (#2555)

This commit is contained in:
Viet Pham 2017-01-10 16:09:00 +07:00 committed by Rushabh Mehta
parent a076c69415
commit 138e1a3b93

View file

@ -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