Tags: Shiphero/python-amazon-mws
Tags
Fix decode error (#4) * Issue/188 (python-amazon-mws#198) * 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> * bump Co-authored-by: Alex Hellier <alex@absolutemusic.co.uk> Co-authored-by: Galen Rice <galen.s.rice@gmail.com>
PreviousNext