瀏覽代碼

fix: Remove print statement

version-14
Suraj Shetty 4 年之前
committed by GitHub
父節點
當前提交
c615f63731
沒有發現已知的金鑰在資料庫的簽署中 GPG Key ID: 4AEE18F83AFDEB23
共有 1 個文件被更改,包括 1 次插入2 次删除
  1. +1
    -2
      frappe/email/doctype/notification/notification.py

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

@@ -73,7 +73,6 @@ def get_context(context):
def validate_twilio_settings(self):
if self.enabled and self.channel == "WhatsApp" \
and not frappe.db.get_single_value("Twilio Settings", "enabled"):
print(frappe.db.get_single_value("Twilio Settings", "enabled"))
frappe.throw(_("Please enable Twilio settings to send WhatsApp messages"))

def validate_condition(self):
@@ -432,4 +431,4 @@ def get_assignees(doc):

recipients = [d.owner for d in assignees]

return recipients
return recipients

Loading…
取消
儲存