litellm/enterprise/litellm_enterprise/enterprise_callbacks/send_emails
Ryan Crabbe 0a4b02fe76
fix: tighten recipient_emails guard to reject empty list
send_max_budget_alert_email previously guarded with `is not None`, which
accepts `[]` and then crashes on `recipient_emails[0]` inside
_get_email_params. The current caller (_handle_multi_threshold_max_budget_alert)
already filters empty lists upstream, but the public method signature makes
no such guarantee — a future caller passing [] would hit IndexError.

Switch to truthiness so both None and [] fall through to the single-recipient
path.
2026-04-18 14:07:18 -07:00
..
base_email.py fix: tighten recipient_emails guard to reject empty list 2026-04-18 14:07:18 -07:00
endpoints.py Remove + Check for unsafe enterprise/ folder imports (#11107) 2025-05-24 08:59:02 -07:00
resend_email.py Email budget alerts working 2025-12-15 16:51:25 -08:00
sendgrid_email.py Email budget alerts working 2025-12-15 16:51:25 -08:00
smtp_email.py Email budget alerts working 2025-12-15 16:51:25 -08:00