fix 500 error on non-existing stack name

This commit is contained in:
Brandon Bradley 2020-01-29 16:27:56 -06:00
commit c877266f86
2 changed files with 5 additions and 0 deletions

View file

@ -677,6 +677,8 @@ class CloudFormationBackend(BaseBackend):
def list_stack_resources(self, stack_name_or_id):
stack = self.get_stack(stack_name_or_id)
if stack is None:
return []
return stack.stack_resources
def delete_stack(self, name_or_stack_id):