Skip to content

Commit dead3f8

Browse files
authored
Update custom.py
Make attachments optional for when sending email
1 parent 7639c81 commit dead3f8

File tree

1 file changed

+1
-1
lines changed
  • src/communication/azext_communication/manual

1 file changed

+1
-1
lines changed

src/communication/azext_communication/manual/custom.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -391,7 +391,7 @@ def communication_email_send(client,
391391
for recipient in recipients_bcc[0].split(',')]
392392
},
393393
"replyTo": None if reply_to is None else [{"address": reply_to}],
394-
"attachments": None if attachments_list is None else [json.loads(attachment)
394+
"attachments": [] if attachments_list is None else [json.loads(attachment)
395395
for attachment in attachments_list],
396396
"senderAddress": sender,
397397
"userEngagementTrackingDisabled": disable_tracking,

0 commit comments

Comments
 (0)