mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-24 05:45:11 +00:00
fix: remove blind except Exception to fix BLE001 ruff
This commit is contained in:
parent
3e02dea379
commit
efeb8753a7
1 changed files with 6 additions and 9 deletions
|
|
@ -2379,15 +2379,12 @@ def _supports_factory(
|
|||
# azure/gpt-5.1_2025-11-13_global) that is not a registry key,
|
||||
# try the configured base_model as a fallback.
|
||||
if base_model is not None and base_model != model:
|
||||
try:
|
||||
_m, _p, _, _ = litellm.get_llm_provider(
|
||||
model=base_model, custom_llm_provider=custom_llm_provider
|
||||
)
|
||||
_info = _get_model_info_helper(model=_m, custom_llm_provider=_p)
|
||||
if _info.get(key, False) is True:
|
||||
return True
|
||||
except Exception:
|
||||
pass
|
||||
_m, _p, _, _ = litellm.get_llm_provider(
|
||||
model=base_model, custom_llm_provider=custom_llm_provider
|
||||
)
|
||||
_info = _get_model_info_helper(model=_m, custom_llm_provider=_p)
|
||||
if _info.get(key, False) is True:
|
||||
return True
|
||||
|
||||
return False
|
||||
except Exception as e:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue