From 87688af610665417774da4e364a8698e01fa4858 Mon Sep 17 00:00:00 2001 From: Muhammad Faraz Maqsood Date: Thu, 3 Apr 2025 16:21:45 +0500 Subject: [PATCH] fix: move links with 500 status to forbidden links move links with 500 status_code to external forbidden links category for manual checking --- cms/djangoapps/contentstore/tasks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cms/djangoapps/contentstore/tasks.py b/cms/djangoapps/contentstore/tasks.py index fc588065cf..e36a8edae8 100644 --- a/cms/djangoapps/contentstore/tasks.py +++ b/cms/djangoapps/contentstore/tasks.py @@ -1375,7 +1375,7 @@ def _filter_by_status(results): continue elif status == 403 and _is_studio_url(url): filtered_results.append([block_id, url, LinkState.LOCKED]) - elif status in [403, None] and not _is_studio_url(url): + elif status in [403, 500, None] and not _is_studio_url(url): filtered_results.append([block_id, url, LinkState.EXTERNAL_FORBIDDEN]) else: filtered_results.append([block_id, url, LinkState.BROKEN])