소스 검색

[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",


불러오는 중...
취소
저장