mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-06 02:48:13 +00:00
fix(test): narrow exception catch per Greptile P2 review
This commit is contained in:
parent
52701074c6
commit
7f8311d3e9
1 changed files with 2 additions and 2 deletions
|
|
@ -115,8 +115,8 @@ def test_non_dict_metadata_not_copied():
|
|||
litellm_params=GenericLiteLLMParams(),
|
||||
headers={},
|
||||
)
|
||||
except Exception:
|
||||
# AnthropicMessagesRequest might reject non-dict metadata; that's fine.
|
||||
except (TypeError, ValueError):
|
||||
# AnthropicMessagesRequest may reject non-dict metadata; that's fine.
|
||||
# The point is the copy logic itself doesn't crash.
|
||||
pass
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue