We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2d133ae commit 650795dCopy full SHA for 650795d
sdk/eventgrid/azure-eventgrid/azure/eventgrid/_operations/_patch.py
@@ -633,7 +633,7 @@ def _to_http_request(topic_name: str, **kwargs: Any) -> HttpRequest:
633
634
# content_type must be CloudEvent DataContentType when in binary mode
635
if not event.datacontenttype:
636
- raise TypeError("CloudEvent datacontenttype must be set when in binary mode.")
+ raise ValueError("CloudEvent datacontenttype must be set when in binary mode.")
637
content_type: str = event.datacontenttype
638
639
api_version: str = kwargs.pop(
0 commit comments