Skip to content

Commit

Permalink
Merge "Raise exception on all 4xx and 5xx responses."
Browse files Browse the repository at this point in the history
  • Loading branch information
Jenkins authored and openstack-gerrit committed Apr 30, 2012
2 parents cdfd1da + bdccfbc commit c00b47c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion novaclient/client.py
Expand Up @@ -103,7 +103,7 @@ def request(self, *args, **kwargs):
else:
body = None

if resp.status in (400, 401, 403, 404, 408, 409, 413, 500, 501):
if resp.status >= 400:
raise exceptions.from_response(resp, body)

return resp, body
Expand Down

0 comments on commit c00b47c

Please sign in to comment.