rest-client icon indicating copy to clipboard operation
rest-client copied to clipboard

Fix ConnectionError, as it does not contain the 'message' attribute

Open rfalias opened this issue 5 years ago • 1 comments

The ConnectionError object from request.exceptions.RequestException does not contain the 'message' attribute. This causes and exception when trying to handle these exceptions. Fixed by using 'args' to get the inner exception.

rfalias avatar Apr 11 '19 14:04 rfalias