This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author rhettinger
Recipients docs@python, eric.smith, mattheww, rhettinger
Date 2021-02-27.23:43:36
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1614469416.73.0.0520763843563.issue43340@roundup.psfhosted.org>
In-reply-to
Content
Normally, we don't (or can't) enumerate all possible exceptions.  But
in this case, it is worth expanding the documentation so that person can know which of two common input errors they need to catch:

"If the data being deserialized is not valid UTF-8 a UnicodeDecodeError will be raised, and if the decoded file is not 
a valid JSON document, a JSONDecodeError will be raised".
History
Date User Action Args
2021-02-27 23:43:36rhettingersetrecipients: + rhettinger, eric.smith, mattheww, docs@python
2021-02-27 23:43:36rhettingersetmessageid: <1614469416.73.0.0520763843563.issue43340@roundup.psfhosted.org>
2021-02-27 23:43:36rhettingerlinkissue43340 messages
2021-02-27 23:43:36rhettingercreate