Skip to content

gh-93851: Add Tools/scripts/checkhtmllinks.py #93856

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 8 commits into from
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