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

Incorrect exception type raised #151

Open
sirdodger opened this issue Sep 13, 2022 · 0 comments
Open

Incorrect exception type raised #151

sirdodger opened this issue Sep 13, 2022 · 0 comments

Comments

@sirdodger
Copy link

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"

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