feat(alerts): debug
This commit is contained in:
parent
33f2d2de59
commit
6d7a0ea740
1 changed files with 3 additions and 0 deletions
|
|
@ -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"))
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue