Skip to content

Commit 29ba15e

Browse files
Merge branch 'bugfix' into vulnid_mal
2 parents f34a3cd + 1ba1122 commit 29ba15e

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

dojo/notifications/helper.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -627,6 +627,10 @@ def __init__(self, *args: list, **kwargs: dict) -> None:
627627
def create_notification(self, event: str | None = None, **kwargs: dict) -> None:
628628
# Process the notifications for a given list of recipients
629629
if kwargs.get("recipients") is not None:
630+
recipients = kwargs.get("recipients", [])
631+
if not recipients:
632+
logger.debug("No recipients provided for event: %s", event)
633+
return
630634
self._process_recipients(event=event, **kwargs)
631635
else:
632636
logger.debug("creating system notifications for event: %s", event)

0 commit comments

Comments
 (0)