--- ValBot/Python/check_intrawiki_section_links.py 2022/03/21 21:23:25 1171 +++ ValBot/Python/check_intrawiki_section_links.py 2022/06/28 22:06:29 1173 @@ -82,7 +82,7 @@ def scan_for_iw_links(page_text): # we're out of luck. if link_text.startswith('/'): link_text = page_name + link_text - pywikibot.stdout('Changed link_text to {} on account of "/".'.format(link_text)) + #pywikibot.stdout('Changed link_text to {} on account of "/".'.format(link_text)) # If this is a relative "../" link, find the parent page and set ourselves to that page, # then remove the relative portion of the link. Note that this is only performed once, @@ -143,8 +143,8 @@ def scan_for_iw_links(page_text): # If we still haven't turned this match into a URL, something's gone wrong if (found_iw_match == False) or (iw_url == ""): - pywikibot.stdout('ERROR: Couldn\'t figure out link {}. Aborting script.'.format(link_text)) - quit() + pywikibot.stdout('ERROR: Couldn\'t figure out link {}.'.format(link_text)) + continue # Test the URL iw_url = iw_url.replace(' ', '_')