fix: incorrect if condition in smtp module
This commit is contained in:
parent
639da6ec54
commit
cfd7f8bf37
1 changed files with 3 additions and 3 deletions
|
|
@ -47,9 +47,9 @@ def get_outgoing_email_account(raise_exception_not_set=True, append_to=None, sen
|
|||
if not getattr(frappe.local, "outgoing_email_account", None):
|
||||
frappe.local.outgoing_email_account = {}
|
||||
|
||||
if not frappe.local.outgoing_email_account.get(append_to) \
|
||||
or frappe.local.outgoing_email_account.get(sender_email_id) \
|
||||
or frappe.local.outgoing_email_account.get("default"):
|
||||
if not (frappe.local.outgoing_email_account.get(append_to)
|
||||
or frappe.local.outgoing_email_account.get(sender_email_id)
|
||||
or frappe.local.outgoing_email_account.get("default")):
|
||||
email_account = None
|
||||
|
||||
if append_to:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue