simphony-osp icon indicating copy to clipboard operation
simphony-osp copied to clipboard

Make non-ascii character error in YAML parse more specific

Open pablo-de-andres opened this issue 4 years ago • 1 comments

In GitLab by @pablo-de-andres on Mar 5, 2020, 13:40

Relates to #255. When PyYaml finds a non-ascii character, it raises a UnicodeDecodeError: 'charmap' codec can't decode byte 0xBB in position xxx

We should try to make the error more informative, maybe provide a position for the character if possible?

pablo-de-andres avatar Jun 22 '20 14:06 pablo-de-andres

In GitLab by @urbanmatthias on Mar 5, 2020, 13:41

We could also state in the error message, that this problem only occurs on windows

pablo-de-andres avatar Jun 22 '20 14:06 pablo-de-andres