mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
Documenting that json.load may raise a ValueError.
Issue #18680: JSONDecoder should document that it raises a ValueError for malformed data
This commit is contained in:
parent
60fb9719a1
commit
b435799520
1 changed files with 2 additions and 0 deletions
|
@ -256,6 +256,8 @@ Basic Usage
|
|||
The other arguments have the same meaning as in :func:`load`, except
|
||||
*encoding* which is ignored and deprecated.
|
||||
|
||||
If the data being deserialized is not a valid JSON document, a
|
||||
:exc:`ValueError` will be raised.
|
||||
|
||||
Encoders and Decoders
|
||||
---------------------
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue