mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-29 01:42:19 +00:00
refactor(proxy): collapse the alert recipient isinstance checks into one call
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This commit is contained in:
parent
280abea2a8
commit
6ac7f20a21
1 changed files with 1 additions and 1 deletions
|
|
@ -5606,7 +5606,7 @@ def _is_valid_alert_threshold_pct(pct: str) -> bool:
|
|||
|
||||
|
||||
def _alert_recipients(raw: object) -> Sequence[str] | None:
|
||||
if isinstance(raw, str) or isinstance(raw, Sequence):
|
||||
if isinstance(raw, (str, Sequence)):
|
||||
return _parse_email_list(raw)
|
||||
return None
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue