(response, url, request_body)
| 95 | |
| 96 | |
| 97 | def handle_http_post_error(response, url, request_body): |
| 98 | try: |
| 99 | response.raise_for_status() |
| 100 | except HTTPError as error: |
| 101 | message = _decode_response_error(response) |
| 102 | raise HTTPError( |
| 103 | 'Request %s with body: %s exception, ' |
| 104 | 'Response details: %s, request id: %s' % |
| 105 | (url, request_body, message, get_request_id(response))) from error |
| 106 | |
| 107 | |
| 108 | def handle_http_response(response: requests.Response, |
nothing calls this directly
no test coverage detected
searching dependent graphs…