Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Proper Error Handling Missing at client initialization #47

Open
sonivi opened this issue Sep 19, 2018 · 0 comments
Open

Proper Error Handling Missing at client initialization #47

sonivi opened this issue Sep 19, 2018 · 0 comments

Comments

@sonivi
Copy link
Contributor

sonivi commented Sep 19, 2018

https://github.com/hpe-storage/python-3parclient/blob/master/hpe3parclient/client.py#L201-L204
try: api_version = self.getWsApiVersion() except exceptions as ex: ex_desc = ex.get_description()

error at "self.getWsApiVersion()" results in

11:23:49 E   requests.exceptions.ProxyError: HTTPSConnectionPool(host='192.168.67.2', port=8080): Max retries exceeded with url: /api (Caused by ProxyError('Cannot connect to proxy.', OSError('Tunnel connection failed: 503 Service Unavailable',)))
11:23:49 
11:23:49 During handling of the above exception, another exception occurred:
11:23:49 hpe_3par_api_manage_test.py:48: in <module>
11:23:49     hpe_3par_cli = HPE3ParClient(HPE3PAR_API_URL, True, False, None, True)
11:23:49 /usr/lib/python3.6/site-packages/hpe3parclient/client.py:203: in __init__
11:23:49     except exceptions as ex:
11:23:49 E   TypeError: catching classes that do not inherit from BaseException is not allowed
11:23:49 ------------------------------- Captured stderr --------------------------------
11:23:49 
11:23:49 REQ: curl -i https://192.168.67.2:8080/api -X GET -H "User-Agent: python-3parclient" -H "Accept: application/json"
11:23:49 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant