diff --git a/backend/endpoints/rom.py b/backend/endpoints/rom.py index 1894607db..31b037226 100644 --- a/backend/endpoints/rom.py +++ b/backend/endpoints/rom.py @@ -558,7 +558,7 @@ async def delete_roms( @protected_route(router.put, "/roms/{id}/props", [Scope.ROMS_USER_WRITE]) async def update_rom_user(request: Request, id: int) -> RomUserSchema: data = await request.json() - data = data["data"] or {} + data = data.get("data", {}) rom = db_rom_handler.get_rom(id)