From 2867f8b7c906fc68cbe5caa0f0763203a47d6f2e Mon Sep 17 00:00:00 2001 From: Jesper Hodge Date: Thu, 16 Jan 2025 18:26:17 -0500 Subject: [PATCH] fix: serialization --- .../contentstore/rest_api/v0/views/course_optimizer.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/cms/djangoapps/contentstore/rest_api/v0/views/course_optimizer.py b/cms/djangoapps/contentstore/rest_api/v0/views/course_optimizer.py index 421fa274d33..9d6f8df3a4f 100644 --- a/cms/djangoapps/contentstore/rest_api/v0/views/course_optimizer.py +++ b/cms/djangoapps/contentstore/rest_api/v0/views/course_optimizer.py @@ -190,10 +190,7 @@ def get(self, request: Request, course_id: str): **({'LinkCheckOutput': broken_links_dto} if broken_links_dto else {}), **({'LinkCheckError': error} if error else {}) } - - print('data', data) - serializer = LinkCheckSerializer(data=data) - serializer.is_valid(raise_exception=False) + serializer = LinkCheckSerializer(data) return Response(serializer.data)