Skip to content

Commit

Permalink
fix: raise for rest transport http error (#738)
Browse files Browse the repository at this point in the history
  • Loading branch information
arithmetic1728 committed Jan 20, 2021
1 parent 2e97677 commit 7d24f3d
Showing 1 changed file with 3 additions and 0 deletions.
Expand Up @@ -199,6 +199,9 @@ class {{ service.name }}RestTransport({{ service.name }}Transport):
json=body,
{%- endif %}
)

# Raise requests.exceptions.HTTPError if the status code is >= 400
response.raise_for_status()
{%- if not method.void %}

# Return the response
Expand Down

0 comments on commit 7d24f3d

Please sign in to comment.