def _get_elements_in_response(self, response):
    for msg in response:
        for container_name in (self.element_container_name, self.failed_mailboxes_container_name):
            try:
                container = self._get_element_container(message=msg, name=container_name)
            except MalformedResponseError:
                continue
            (yield from self._get_elements_in_container(container=container))
def _get_elements_in_response(self, response):
    for msg in response:
        for container_name in (self.element_container_name, self.failed_mailboxes_container_name):
            try:
                container = self._get_element_container(message=msg, name=container_name)
            except MalformedResponseError:
                continue
            (yield from self._get_elements_in_container(container=container))