[issue36975] csv: undocumented UnicodeDecodeError on malformed file

Brett Cannon report at bugs.python.org
Thu May 23 16:41:11 EDT 2019


Brett Cannon <brett at python.org> added the comment:

This isn't a bug because the CSV format isn't malformed (which would be appropriate for csv.Error), but the file itself isn't appropriate encoded (or the proper encoding wasn't specified (hence UnicodeDecodeError). So the exception is appropriate.

And we do not document indirect exceptions that get raised by code, only those that are explicitly raised. So everything is as it's expected.

----------
nosy: +brett.cannon
resolution:  -> not a bug
stage:  -> resolved
status: open -> closed

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue36975>
_______________________________________


More information about the Python-bugs-list mailing list