def METHOD_NAME(
    self, root, id_sdi, message_id, receipt_dt, fatturapa_attachment_out
):
    error_list = root.find("ListaErrori")
    error_str = ""
    for error in error_list:
        error_str += "\n[%s] %s %s" % (
            error.find("Codice").text if error.find("Codice") is not None else "",
            error.find("Descrizione").text
            if error.find("Descrizione") is not None
            else "",
            error.find("Suggerimento").text
            if error.find("Suggerimento") is not None
            else "",
        )
    fatturapa_attachment_out.write(
        {
            "state": "sender_error",
            "last_sdi_response": "SdI ID: {}; "
            "Message ID: {}; Receipt date: {}; "
            "Error: {}".format(id_sdi, message_id, receipt_dt, error_str),
        }
    )