fix(test): narrow exception catch per Greptile P2 review

This commit is contained in:
Vigilans 2026-04-20 16:21:17 +08:00
parent 52701074c6
commit 7f8311d3e9

View file

@ -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