Fix Blockchain to work with new API (#3575)

* Fix Blockchain to work with new API

* Improve Lambda->SQS error handling
This commit is contained in:
Bert Blommers 2021-01-07 03:18:50 -08:00 committed by GitHub
commit 9ecea2012a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 23 additions and 12 deletions

View file

@ -518,10 +518,8 @@ class Queue(CloudFormationModel):
if result:
[backend.delete_message(self.name, m.receipt_handle) for m in messages]
else:
[
backend.change_message_visibility(self.name, m.receipt_handle, 0)
for m in messages
]
# Make messages visible again
[m.change_visibility(visibility_timeout=0) for m in messages]
def get_cfn_attribute(self, attribute_name):
from moto.cloudformation.exceptions import UnformattedGetAttTemplateException