Skip to content

Commit 9e675bc

Browse files
committed
type error to value error (#35164)
1 parent 8b1a58b commit 9e675bc

File tree

1 file changed

+1
-1
lines changed
  • sdk/eventgrid/azure-eventgrid/azure/eventgrid/_operations

1 file changed

+1
-1
lines changed

sdk/eventgrid/azure-eventgrid/azure/eventgrid/_operations/_patch.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -633,7 +633,7 @@ def _to_http_request(topic_name: str, **kwargs: Any) -> HttpRequest:
633633

634634
# content_type must be CloudEvent DataContentType when in binary mode
635635
if not event.datacontenttype:
636-
raise TypeError("CloudEvent datacontenttype must be set when in binary mode.")
636+
raise ValueError("CloudEvent datacontenttype must be set when in binary mode.")
637637
content_type: str = event.datacontenttype
638638

639639
api_version: str = kwargs.pop(

0 commit comments

Comments
 (0)