We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The ApiException class has an optional http_resp parameter. It will then use the alternate construction which does not set the trace_token attribute.
ApiException
http_resp
trace_token
Here is a reproducer:
from docusign_esign import ApiException e = ApiException(status="status", reason="reason") print(e)
Here is what I got when running it:
In [1]: from docusign_esign import ApiException In [2]: e = ApiException(status="status", reason="reason") In [3]: print(e) --------------------------------------------------------------------------- AttributeError Traceback (most recent call last) <ipython-input-3-0c8bf275a22d> in <module> ----> 1 print(e) ~/.pyenv/versions/3.8.14-yardline/lib/python3.8/site-packages/docusign_esign/client/api_exception.py in __str__(self) 38 "Reason: {1}\n" \ 39 "Trace-Token: {2}\n" \ ---> 40 "Timestamp: {3}\n".format(self.status, self.reason, self.trace_token, self.timestamp) 41 if self.headers: 42 error_message += "HTTP response headers: {0}\n".format(self.headers) AttributeError: 'ApiException' object has no attribute 'trace_token'
The text was updated successfully, but these errors were encountered:
Fix no attribute error printing ApiException
81597ef
Fixes docusign#177 Signed-off-by: jesus m. rodriguez <[email protected]>
After the patch it works:
(status) Reason: reason Trace-Token: None Timestamp: None
Sorry, something went wrong.
6109e82
garg-mudit
Successfully merging a pull request may close this issue.
The
ApiException
class has an optionalhttp_resp
parameter. It will then use the alternate construction which does not set thetrace_token
attribute.Here is a reproducer:
Here is what I got when running it:
The text was updated successfully, but these errors were encountered: