Merge pull request #2947 from usmangani1/LSTACKISSUE1658
Fix SQS send_message_batch empty array Exception handling
This commit is contained in:
commit
8a1b24b234
2 changed files with 18 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue