Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions dojo/notifications/helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -627,6 +627,10 @@ def __init__(self, *args: list, **kwargs: dict) -> None:
def create_notification(self, event: str | None = None, **kwargs: dict) -> None:
# Process the notifications for a given list of recipients
if kwargs.get("recipients") is not None:
recipients = kwargs.get("recipients", [])
if not recipients:
logger.debug("No recipients provided for event: %s", event)
return
self._process_recipients(event=event, **kwargs)
else:
logger.debug("creating system notifications for event: %s", event)
Expand Down