Switch loader to use json helper (#73872)

This commit is contained in:
J. Nick Koston
2022-06-22 21:57:38 -05:00
committed by GitHub
parent b5f6f785d5
commit 164eba7e5d
2 changed files with 4 additions and 3 deletions

View File

@ -7,6 +7,7 @@ from typing import Any, Final
import orjson
JSON_ENCODE_EXCEPTIONS = (TypeError, ValueError)
JSON_DECODE_EXCEPTIONS = (orjson.JSONDecodeError,)
class JSONEncoder(json.JSONEncoder):