Skip to content

Commit

Permalink
Document UnicodeEncodeError
Browse files Browse the repository at this point in the history
  • Loading branch information
nineteendo committed Nov 28, 2024
1 parent b88c506 commit c1bfd35
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/jsonyx/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -266,6 +266,7 @@ def write(
:param trailing_comma: add a trailing comma when indented
:raises RecursionError: if the object is too deeply nested
:raises TypeError: for unserializable values
:raises UnicodeEncodeError: when failing to encode the file
:raises ValueError: for invalid values
Example:
Expand Down
1 change: 1 addition & 0 deletions src/jsonyx/_encoder.py
Original file line number Diff line number Diff line change
Expand Up @@ -368,6 +368,7 @@ def write(self, obj: object, filename: _StrPath) -> None:
:param filename: the path to the JSON file
:raises RecursionError: if the object is too deeply nested
:raises TypeError: for unserializable values
:raises UnicodeEncodeError: when failing to encode the file
:raises ValueError: for invalid values
Example:
Expand Down

0 comments on commit c1bfd35

Please sign in to comment.