def process_incident(incident): if incident.ticket_id: log_event(incident.ticket_id, incident.description) return incident.ticket_id