PureStorage-OpenConnect / rest-client

Pure Storage FlashArray Python REST 1.X Client
BSD 2-Clause "Simplified" License
39 stars 23 forks source link

Fix exception handling when SSL certificate can't be verified. #19

Open rmilkowski opened 4 years ago

rmilkowski commented 4 years ago

Without the fix FlashArray() call fails with:

... File ".../.venv/lib64/python3.6/site-packages/purestorage/purestorage.py", line 169, in _request raise PureError(err.message) AttributeError: 'SSLError' object has no attribute 'message'