Skip to content

Commit

Permalink
fix(utils): corrects exception handling in parse_json
Browse files Browse the repository at this point in the history
  • Loading branch information
pallabpain committed Jun 4, 2024
1 parent a543f71 commit c16d229
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rapyuta_io/utils/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ def parse_json(filepath):
try:
json.loads(data)
except json.decoder.JSONDecodeError:
return InvalidJSONError(filepath)
raise InvalidJSONError(filepath)

return data

Expand Down

0 comments on commit c16d229

Please sign in to comment.