Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix JIRAError to correctly include full details
str(JIRAError) now includes full details of any server-side errors. The problems in the __str__ implementation are threefold: 1. The response.text block checks for the text attribute but then uses the headers attribute (cut-and-paste error from the lines above) 2. The response object is "Truthy" based upon the HTTP response, so in the case of an HTTP error it is actually "False" so the conditional check fails and response details are not included. 3. Finally, the format string is invalid and causes an exception because it is missing a %s at the end. These problems have all been addressed in this commit.
- Loading branch information