Message387795
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". |
|
Date |
User |
Action |
Args |
2021-02-27 23:43:36 | rhettinger | set | recipients:
+ rhettinger, eric.smith, mattheww, docs@python |
2021-02-27 23:43:36 | rhettinger | set | messageid: <1614469416.73.0.0520763843563.issue43340@roundup.psfhosted.org> |
2021-02-27 23:43:36 | rhettinger | link | issue43340 messages |
2021-02-27 23:43:36 | rhettinger | create | |
|