From 95404434388316a7d257126e8df98baf2f9c3911 Mon Sep 17 00:00:00 2001 From: Makarand Bauskar Date: Thu, 13 Jul 2017 11:33:14 +0530 Subject: [PATCH] [minor] don't parse the address if email field is empty (#3675) --- frappe/email/doctype/email_group/email_group.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frappe/email/doctype/email_group/email_group.py b/frappe/email/doctype/email_group/email_group.py index 0aad49c1e6..d74570d0aa 100755 --- a/frappe/email/doctype/email_group/email_group.py +++ b/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",