diff --git a/purestorage/purestorage.py b/purestorage/purestorage.py index fd61fce..78d6ef3 100644 --- a/purestorage/purestorage.py +++ b/purestorage/purestorage.py @@ -166,7 +166,7 @@ def _request(self, method, path, data=None, reestablish_session=True): except requests.exceptions.RequestException as err: # error outside scope of HTTP status codes # e.g. unable to resolve domain name - raise PureError(err.message) + raise PureError(err) if response.status_code == 200: if "application/json" in response.headers.get("Content-Type", ""):