Просмотр исходного кода

fix: Remove print statement

version-14
Suraj Shetty 4 лет назад
committed by GitHub
Родитель
Сommit
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

Загрузка…
Отмена
Сохранить