Skip to content

Commit

Permalink
chore: Remove unreachable code. docs: Add deprecation docstring and u…
Browse files Browse the repository at this point in the history
…pdate changelog.
  • Loading branch information
jpmckinney committed Sep 6, 2024
1 parent 5fd2471 commit 6cb2ff5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.

## [Unreleased]

### Fixed

- Avoid deprecation warning from the ijson package.

## [0.26.0] - 2024-08-22

### Fixed
Expand Down
5 changes: 3 additions & 2 deletions flattentool/json_input.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,9 @@ class BadlyFormedJSONError(FlattenToolError, ValueError):


class BadlyFormedJSONErrorUTF8(BadlyFormedJSONError):
"""
Deprecated. This exception is no longer raised.
"""
pass


Expand Down Expand Up @@ -310,8 +313,6 @@ def __init__(
self.parse()
except ijson.common.IncompleteJSONError as err:
raise BadlyFormedJSONError(*err.args)
except UnicodeDecodeError as err:
raise BadlyFormedJSONErrorUTF8(*err.args)
finally:
if json_filename:
json_file.close()
Expand Down

0 comments on commit 6cb2ff5

Please sign in to comment.