8000 Allow omitting destinations for SendRawEmail (#6665) · localstack/localstack@b288673 · GitHub
[go: up one dir, main page]

Skip to content

Commit b288673

Browse files
authored
Allow omitting destinations for SendRawEmail (#6665)
1 parent e4719cb commit b288673

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

localstack/services/ses/provider.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -273,6 +273,9 @@ def send_raw_email(
273273
if not source:
274274
LOGGER.warning("Source not specified. Rejecting message.")
275275
raise MessageRejected()
276+
277+
if destinations is None:
278+
destinations = []
276279

277280
message = ses_global_backend().send_raw_email(
278281
source, destinations, raw_data, context.region

0 commit comments

Comments
 (0)
0