From 6d7a0ea740021b95184f11c9025791b4c21dad83 Mon Sep 17 00:00:00 2001 From: Taha Yassine Kraiem Date: Tue, 9 Aug 2022 20:02:24 +0200 Subject: [PATCH] feat(alerts): debug --- api/chalicelib/core/alerts.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/api/chalicelib/core/alerts.py b/api/chalicelib/core/alerts.py index e5316ba06..55bd4a29e 100644 --- a/api/chalicelib/core/alerts.py +++ b/api/chalicelib/core/alerts.py @@ -138,7 +138,10 @@ def send_by_email(notification, destination): def send_by_email_batch(notifications_list): + if not helper.has_smtp(): + print("no SMTP configuration for email notifications") if notifications_list is None or len(notifications_list) == 0: + print("no email notifications") return for n in notifications_list: send_by_email(notification=n.get("notification"), destination=n.get("destination"))