docusign-esign-python-client icon indicating copy to clipboard operation
docusign-esign-python-client copied to clipboard

Incorrect exception type raised

Open sirdodger opened this issue 3 years ago • 0 comments

I had an error where my RSA private key was not being loaded. In api_client.py:679, I would expect an ArgumentException to be raised. However, due to the way the exception is raised, I am getting a TypeError exception pointing to api_exception.py:56 instead. (Note that there are other scenarios that raise exceptions that will similarly cause problems.)

Traceback (most recent call last): ... File "/usr/local/lib/python3.8/dist-packages/docusign_esign/client/api_client.py", line 679, in request_jwt_user_token raise ArgumentException("Private key not supplied or is invalid!") File "/usr/local/lib/python3.8/dist-packages/docusign_esign/client/api_exception.py", line 56, in init super(Exception).init(*args, **kwargs) TypeError: super() argument 1 must be type, not str"

sirdodger avatar Sep 13 '22 20:09 sirdodger