MCPcopy
hub / github.com/docker/docker-py / _raise_for_status

Method _raise_for_status

docker/api/client.py:272–277  ·  view source on GitHub ↗

Raises stored :class:`APIError`, if one occurred.

(self, response)

Source from the content-addressed store, hash-verified

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)

Callers 15

_resultMethod · 0.95
_stream_raw_resultMethod · 0.95
_get_result_ttyMethod · 0.95
remove_configMethod · 0.80
remove_networkMethod · 0.80
load_imageMethod · 0.80
pullMethod · 0.80
pushMethod · 0.80
tagMethod · 0.80

Tested by

no test coverage detected