Skip to content

Incorrect exception type raised #151

@sirdodger

Description

@sirdodger

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"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions