mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-07 02:59:05 +00:00
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. |
||
|---|---|---|
| .. | ||
| pagerduty | ||
| secrets_plugins | ||
| send_emails | ||
| callback_controls.py | ||
| example_logging_api.py | ||
| llama_guard.py | ||
| llm_guard.py | ||
| secret_detection.py | ||