Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix test_target() so it always returns a list
  • Loading branch information
arhadthedev authored Aug 4, 2022
commit af53adaec9abd25c3dcb54a38a446cf5fd5a1e07
2 changes: 1 addition & 1 deletion Tools/scripts/checkhtmllinks.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ def test_file(filename, allow_redirects, limit, print_intermediate_report):
links = analyze_page(filename, '', allow_redirects)
if not links:
print(' not found')
return LinkStatus.BAD_REFERRER
return [(LinkStatus.BAD_REFERRER, None)]

targets, referers = links
if limit is not None and len(referers) > limit:
Expand Down