removed ".decoder" from orjson in line 113

This commit is contained in:
JonathanAlKass 2023-11-21 06:30:45 +00:00
parent 46043520ba
commit 62b095c38f

View File

@ -110,7 +110,7 @@ class ApiRolesIndexHandler(BaseApiHandler):
try: try:
data = orjson.loads(self.request.body) data = orjson.loads(self.request.body)
except orjson.decoder.JSONDecodeError as e: except orjson.JSONDecodeError as e:
return self.finish_json( return self.finish_json(
400, {"status": "error", "error": "INVALID_JSON", "error_data": str(e)} 400, {"status": "error", "error": "INVALID_JSON", "error_data": str(e)}
) )