diff --git a/cloudpayments/client.py b/cloudpayments/client.py index 807d876..23d08b5 100644 --- a/cloudpayments/client.py +++ b/cloudpayments/client.py @@ -24,6 +24,7 @@ def _send_request(self, endpoint, params=None, request_id=None): response = requests.post(self.URL + endpoint, json=params, auth=auth, headers=headers) + response.raise_for_status() return response.json(parse_float=decimal.Decimal) def test(self, request_id=None):