SQS - prevent a missing policy json (#4706)

This commit is contained in:
Todd Morse 2021-12-21 05:34:54 -05:00 committed by GitHub
parent 43269fc8af
commit ce9fb90663
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -338,8 +338,7 @@ class Queue(CloudFormationModel):
if attributes.get("RedrivePolicy", None) is not None:
self._setup_dlq(attributes["RedrivePolicy"])
if attributes.get("Policy"):
self.policy = attributes["Policy"]
self.policy = attributes.get("Policy")
self.last_modified_timestamp = now