ソースを参照

fix: Remove print statement

version-14
Suraj Shetty 4年前
committed by GitHub
コミット
c615f63731
この署名に対応する既知のキーがデータベースに存在しません GPGキー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

読み込み中…
キャンセル
保存