Skip to content

Commit

Permalink
Do not send case traige reminders if there is no assignee.
Browse files Browse the repository at this point in the history
  • Loading branch information
metroid-samus committed Nov 17, 2023
1 parent 2ebb4a9 commit daac790
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/dispatch/case/messaging.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,10 @@ def send_case_triage_reminder(case: Case, db_session: SessionLocal):
}
]

if not case.assignee:
log.warning("Case triage reminder message not sent. No assignee.")
return

plugin.instance.send_direct(
case.assignee.individual.email,
message_text,
Expand Down

0 comments on commit daac790

Please sign in to comment.