Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions commentjson/commentjson.py
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,10 @@ def load(fp, **kwargs):

try:
return loads(fp.read(), **kwargs)
except ValueError:
# pass through ValueError since that likely just indicates a bad
# JSON file and ValueError is how the json library signals that.
raise
except Exception as e:
raise JSONLibraryException(e)

Expand Down