When handling requests.exceptions.HTTPError raised by cromwell_tools.api, it is useful to check the status code of the HTTPError. While this is included in the exception as part of a string, access would be easier if the response object was included on the HTTPError itself as opposed to trying to parse the status code from the string.
When handling requests.exceptions.HTTPError raised by cromwell_tools.api, it is useful to check the status code of the HTTPError. While this is included in the exception as part of a string, access would be easier if the response object was included on the HTTPError itself as opposed to trying to parse the status code from the string.
The HTTPError inherits from RequestException which accepts a 'response' keyword argument. See source: https://github.com/psf/requests/blob/master/requests/exceptions.py
Incoming pull request with suggested change.