(response)
| 205 | |
| 206 | @staticmethod |
| 207 | def handle_error(response): |
| 208 | try: |
| 209 | content = parse_api_response(response) |
| 210 | fault = content.get("faultstring", "") if content else "" |
| 211 | if fault: |
| 212 | response.reason += "\nMESSAGE: %s" % fault |
| 213 | except Exception as e: |
| 214 | response.reason += ( |
| 215 | "\nUnable to retrieve detailed message " |
| 216 | "from the HTTP response. %s\n" % six.text_type(e) |
| 217 | ) |
| 218 | response.raise_for_status() |
| 219 | |
| 220 | @add_auth_token_to_kwargs_from_env |
| 221 | def get_all(self, **kwargs): |
no test coverage detected