Merge pull request #2947 from usmangani1/LSTACKISSUE1658

Fix SQS send_message_batch empty array Exception handling
This commit is contained in:
Steve Pulec 2020-05-01 15:50:08 -05:00 committed by GitHub
commit 8a1b24b234
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 18 additions and 0 deletions

View file

@ -285,6 +285,9 @@ class SQSResponse(BaseResponse):
"MessageAttributes": message_attributes,
}
if entries == {}:
raise EmptyBatchRequest()
messages = self.sqs_backend.send_message_batch(queue_name, entries)
template = self.response_template(SEND_MESSAGE_BATCH_RESPONSE)