style(cost_calculator): avoid bare except pass in rerank_cost

This commit is contained in:
addy79 2026-10-21 21:09:41 +00:00
parent f5c4561ab3
commit 5d7dcc2f08

View file

@ -2723,8 +2723,8 @@ def rerank_cost(
try:
builtin_info = litellm.get_model_info(model=model, custom_llm_provider=custom_llm_provider)
model_info = {**(model_info or {}), **builtin_info} if model_info else builtin_info
except Exception:
pass
except Exception as e:
verbose_logger.debug("Failed to get model info in rerank_cost: %s", e)
return config.calculate_rerank_cost(
model=model,