fix: move links with 500 status to forbidden links

move links with 500 status_code to external forbidden links category for manual checking
This commit is contained in:
Muhammad Faraz Maqsood
2025-04-03 16:21:45 +05:00
committed by Muhammad Faraz Maqsood
parent 52f2231f20
commit 87688af610

View File

@@ -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])