Skip to content
Snippets Groups Projects
Commit ee1dece0 authored by Per Cederqvist's avatar Per Cederqvist
Browse files

Minor optimization: only search for the redirect link inside the

contentSub element.
parent 18597597
No related branches found
No related tags found
Loading
......@@ -41,7 +41,7 @@ def check_host(hostname):
if csub.findNext(attrs={"alt": "#REDIRECT"}):
warning(hostname, "broken redirect")
redirected_from = tree.find(
redirected_from = csub.find(
"a",
attrs={"href":
"/index.php?title=%s&redirect=no" % hostname.capitalize()})
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment