hpe-storage / python-3parclient

This is a python client that talks to the HPE Alletra 9000 and HPE Primera and HPE 3PAR storage array via REST.
Apache License 2.0
48 stars 70 forks source link

TypeError: catching classes that do not inherit from BaseException is not allowed #91

Open MarcelGehring opened 2 years ago

MarcelGehring commented 2 years ago

There's what I think is a bug in client.py line 220.

Traceback (most recent call last): ... File "/usr/local/lib/python3.9/site-packages/hpe3parclient/client.py", line 220, in init except exceptions as ex: TypeError: catching classes that do not inherit from BaseException is not allowed

The code is except exceptions as ex:

and from my perspective it should be except Exception as ex: