Merge branch 'JonathanAlKass-master-patch-25467' into 'dev'

removed ".decoder" from orjson in crafty-4/app/classes/web/routes/api/roles/index.py: line 113

See merge request crafty-controller/crafty-4!674
This commit is contained in:
Iain Powrie 2023-11-25 20:20:38 +00:00
commit 67ed35a6b0

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)}
) )