litellm/tests/test_litellm/proxy/spend_tracking
yuneng-jiang 1a08ac6619 Fix TypeError in _is_master_key when api_key is None
When a request arrives without an API key, auth fails and the failure
hook triggers spend tracking. _is_master_key was called with api_key=None,
causing secrets.compare_digest to raise TypeError. Add a None guard for
api_key matching the existing guard for _master_key.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-11 11:01:29 -07:00
..
test_cloudzero_endpoints.py Adding backend 2025-12-19 13:04:59 -08:00
test_spend_management_endpoints.py [Release Fix] (#22411) 2026-02-28 09:46:35 -08:00
test_spend_query_optimization.py
test_spend_tracking_utils.py Fix TypeError in _is_master_key when api_key is None 2026-03-11 11:01:29 -07:00