--- ValBot/Python/check_intrawiki_section_links.py 2023/08/15 02:03:16 1185 +++ ValBot/Python/check_intrawiki_section_links.py 2023/11/20 02:18:07 1186 @@ -86,7 +86,7 @@ def find_section(page_text, page_name, p break if found_section == False: possibly_print(page_name) - pywikibot.stdout(' ERROR: Could not find section "{0}" on page {1}!'.format(anchor_name, pre_section)) + pywikibot.stdout(' ERROR: Could not find section "{0}" on page {1}!'.format(anchor_name, target_page_name_human)) errors_issued += 1 elif debug and print_result: pywikibot.stdout(' The section "{0}" was found on page "{1}".'.format(anchor_name, target_page_name_human))