close
Skip to content

Fix decode error#4

Merged
marcosmonti merged 2 commits into
developfrom
fix/decode-error
Aug 25, 2020
Merged

Fix decode error#4
marcosmonti merged 2 commits into
developfrom
fix/decode-error

Conversation

@marcosmonti
Copy link
Copy Markdown

Bobspadger and others added 2 commits August 25, 2020 11:40
* quick fix for ignoring a usual location for venv.

* decode using iso-8859-1 and if this fails, raise the MWSError with the original xml attached to .response

* comment in the code to show WHY we are returning this. The developer using this can then take a good look at the XML to find out why it has failed to decode and report back to us any issues.

* duplicate the tests and inject a known problem char (\x94) to make sure the decoding works.

These tests are currently not passing on my computer due to hashable object issues with pytest, but were quite happy on Github actions.

Committing and pushing to see what result we get in the pipeline.

* code format with black.

* Test re-writes, should work now.

* Black formatting fix

Co-authored-by: Galen Rice <galen.s.rice@gmail.com>
@acmenna acmenna self-requested a review August 25, 2020 14:44
@marcosmonti marcosmonti merged commit be9cae9 into develop Aug 25, 2020
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

Successfully merging this pull request may close these issues.

3 participants