浏览代码

[minor] don't parse the address if email field is empty (#3675)

version-14
Makarand Bauskar 8 年前
committed by GitHub
父节点
当前提交
9540443438
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. +1
    -1
      frappe/email/doctype/email_group/email_group.py

+ 1
- 1
frappe/email/doctype/email_group/email_group.py 查看文件

@@ -26,7 +26,7 @@ class EmailGroup(Document):

for user in frappe.db.get_all(doctype, [email_field, unsubscribed_field or "name"]):
try:
email = parse_addr(user.get(email_field))[1]
email = parse_addr(user.get(email_field))[1] if user.get(email_field) else None
if email:
frappe.get_doc({
"doctype": "Email Group Member",


正在加载...
取消
保存