fix: handle None value in recipients while sending system notification
This commit is contained in:
parent
898098d38e
commit
fc2fdbe426
1 changed files with 3 additions and 0 deletions
|
|
@ -167,7 +167,10 @@ def get_context(context):
|
|||
subject = frappe.render_template(self.subject, context)
|
||||
|
||||
attachments = self.get_attachment(doc)
|
||||
|
||||
recipients, cc, bcc = self.get_list_of_recipients(doc, context)
|
||||
if not (recipients or cc or bcc):
|
||||
return
|
||||
users = recipients + cc + bcc
|
||||
|
||||
notification_doc = {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue