Raises stored :class:`APIError`, if one occurred.
(self, response)
| 270 | return f'{self.base_url}{formatted_path}' |
| 271 | |
| 272 | def _raise_for_status(self, response): |
| 273 | """Raises stored :class:`APIError`, if one occurred.""" |
| 274 | try: |
| 275 | response.raise_for_status() |
| 276 | except requests.exceptions.HTTPError as e: |
| 277 | raise create_api_error_from_http_exception(e) from e |
| 278 | |
| 279 | def _result(self, response, json=False, binary=False): |
| 280 | assert not (json and binary) |
no test coverage detected