That means urllib3.exceptions.MaxRetryError is exposed directly to the caller (even though the use of urllib3 is an implementation detail).
The bypassed code discards the original exception which means that the caller must parse the ApiException.reason string to figure out what happened. In a way, this makes 1 preferable.
The SDK claims support for
urllib3 >= 1.15
: https://github.com/Isilon/isilon_sdk_python/blob/19958108ec550865ebeb1f2a4d250322cf4681c2/setup.py#L25In
urllib3
1.22,MaxRetryError
is raised instead ofSSLError
directly:This means that if
urllib3 >= 1.22
is used, this code is bypassed: https://github.com/Isilon/isilon_sdk_python/blob/19958108ec550865ebeb1f2a4d250322cf4681c2/isi_sdk/rest.py#L220-L222urllib3.exceptions.MaxRetryError
is exposed directly to the caller (even though the use ofurllib3
is an implementation detail).ApiException.reason
string to figure out what happened. In a way, this makes 1 preferable.