mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-25 18:54:30 +00:00
fix use safe access for router alerting
This commit is contained in:
parent
bd5d1be1f6
commit
2d2650a2b6
1 changed files with 6 additions and 0 deletions
|
@ -26,6 +26,12 @@ async def send_llm_exception_alert(
|
||||||
Returns:
|
Returns:
|
||||||
None
|
None
|
||||||
"""
|
"""
|
||||||
|
if litellm_router_instance is None:
|
||||||
|
return
|
||||||
|
|
||||||
|
if not hasattr(litellm_router_instance, "slack_alerting_logger"):
|
||||||
|
return
|
||||||
|
|
||||||
if litellm_router_instance.slack_alerting_logger is None:
|
if litellm_router_instance.slack_alerting_logger is None:
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue