I was wondering if it might make sense for query() to retry requests.exceptions.RequestException errors?
https://github.com/digital-science/dimcli/blob/master/dimcli/core/api.py#L113-L196
I ran into a situation where a requests.exceptions.ChunkedEncodingError was being thrown because of some network error somewhere and it would have been helpful if the request got retried automtically since I was using retries=5.
More information about the exception can be found in sul-dlss/rialto-airflow#137