Quick Fix for NonXMLErrorException #515
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This is a quick fix in response to #514.
This should pass through any response body, regardless of whether or not it has one of our well-formed error XML objects in it.
However, it doesn't address all of the reporting user's issues -- for that I think we would need to re-evaluate how we catch exceptions and bubble them up.
The user requested we go back to v0.8.1 functionality, but I believe that would just throw ParseError because of the check in https://github.com/tableau/server-client-python/blob/master/tableauserverclient/server/endpoint/exceptions.py#L17
So let's take this fix now, and we can take some more time to better handle the report from #514