Skip to content

Commit

Permalink
handle async_log_proxy_authentication_errors
Browse files Browse the repository at this point in the history
  • Loading branch information
ishaan-jaff committed Nov 27, 2024
1 parent c949562 commit c09ca78
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions litellm/proxy/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -891,7 +891,7 @@ async def async_log_proxy_authentication_errors(
original_exception: Exception,
request: Request,
parent_otel_span: Optional[Any],
api_key: str,
api_key: Optional[str],
):
"""
Handler for Logging Authentication Errors on LiteLLM Proxy
Expand All @@ -905,7 +905,7 @@ async def async_log_proxy_authentication_errors(

user_api_key_dict = UserAPIKeyAuth(
parent_otel_span=parent_otel_span,
token=_hash_token_if_needed(token=api_key),
token=_hash_token_if_needed(token=api_key or ""),
)
try:
request_data = await request.json()
Expand Down

0 comments on commit c09ca78

Please sign in to comment.