Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions purestorage/purestorage.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
# The current version of this library.
VERSION = "1.16.0"


class FlashArray(object):

"""Represents a Pure Storage FlashArray and exposes administrative APIs.
Expand Down Expand Up @@ -161,6 +160,8 @@ def _request(self, method, path, data=None, reestablish_session=True):
try:
response = requests.request(method, url, data=body, headers=headers,
cookies=self._cookies, **self._request_kwargs)
except requests.exceptions.ConnectTimeout as timeouterr:
raise PureError(timeouterr)
except requests.exceptions.RequestException as err:
# error outside scope of HTTP status codes
# e.g. unable to resolve domain name
Expand Down Expand Up @@ -3761,4 +3762,3 @@ def __str__(self):
"version {1} at {2}: {3}\n{4}")
return msg.format(self.code, self.rest_version, self.target,
self.reason, self.text)