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