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:
committed by
Muhammad Faraz Maqsood
parent
52f2231f20
commit
87688af610
@@ -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])
|
||||
|
||||
Reference in New Issue
Block a user