From 47fc92e4255d39b07cd24a2e3a46e7710388cdca Mon Sep 17 00:00:00 2001 From: Libba Lawrence Date: Thu, 11 Apr 2024 10:53:41 -0700 Subject: [PATCH] type error to value error (#35164) --- .../azure-eventgrid/azure/eventgrid/_operations/_patch.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdk/eventgrid/azure-eventgrid/azure/eventgrid/_operations/_patch.py b/sdk/eventgrid/azure-eventgrid/azure/eventgrid/_operations/_patch.py index 3e3158b7d4e7..158d0010dcde 100644 --- a/sdk/eventgrid/azure-eventgrid/azure/eventgrid/_operations/_patch.py +++ b/sdk/eventgrid/azure-eventgrid/azure/eventgrid/_operations/_patch.py @@ -633,7 +633,7 @@ def _to_http_request(topic_name: str, **kwargs: Any) -> HttpRequest: # content_type must be CloudEvent DataContentType when in binary mode if not event.datacontenttype: - raise TypeError("CloudEvent datacontenttype must be set when in binary mode.") + raise ValueError("CloudEvent datacontenttype must be set when in binary mode.") content_type: str = event.datacontenttype api_version: str = kwargs.pop(