diff --git a/one/webclient.py b/one/webclient.py index cd6a5a12..465f8b67 100644 --- a/one/webclient.py +++ b/one/webclient.py @@ -615,6 +615,7 @@ def _generic_request(self, reqfunction, rest_query, data=None, files=None): message = json.loads(r.text) message.pop('status_code', None) # Get status code from response object instead message = message.get('detail') or message # Get details if available + _logger.error(message) except json.decoder.JSONDecodeError: message = r.text raise requests.HTTPError(r.status_code, rest_query, message, response=r)