Переглянути джерело

fix: Remove print statement

version-14
Suraj Shetty 4 роки тому
committed by GitHub
джерело
коміт
c615f63731
Не вдалося знайти GPG ключ що відповідає даному підпису Ідентифікатор GPG ключа: 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

Завантаження…
Відмінити
Зберегти