Skip to content

Commit

Permalink
type error to value error (Azure#35164)
Browse files Browse the repository at this point in the history
  • Loading branch information
l0lawrence committed May 16, 2024
1 parent cf173f2 commit 6e13630
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 6e13630

Please sign in to comment.