Skip to content

Commit

Permalink
Raise exception on all 4xx and 5xx responses.
Browse files Browse the repository at this point in the history
Fixes bug 965826.

Change-Id: I44ce602176320b1e60e4c927e19a7eec232923b9
  • Loading branch information
YorikSar committed Apr 13, 2012
1 parent d6d7386 commit bdccfbc
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 bdccfbc

Please sign in to comment.