[...] File "/home/mdupuy/dev/pyexchange/pyexchange/base/soap.py", line 65, in _send_soap_request response = self.connection.send(body, headers, retries, timeout) File "/home/mdupuy/dev/pyexchange/pyexchange/connection.py", line 68, in send log.debug(err.response.content) AttributeError: 'NoneType' object has no attribute 'content'
For all error that occur before server response, like connectivity error and some other else, RequestException does not have a response attribute. Maybe use something else like requests.Exception.message, which always contains the reason of the error, whatever is the faulty layer.
[...] File "/home/mdupuy/dev/pyexchange/pyexchange/base/soap.py", line 65, in _send_soap_request response = self.connection.send(body, headers, retries, timeout) File "/home/mdupuy/dev/pyexchange/pyexchange/connection.py", line 68, in send log.debug(err.response.content) AttributeError: 'NoneType' object has no attribute 'content'
For all error that occur before server response, like connectivity error and some other else, RequestException does not have a
response
attribute. Maybe use something else like requests.Exception.message, which always contains the reason of the error, whatever is the faulty layer.