Code snippet to reproduce
def repro_ipv6_crash() -> None: user = pywikibot.User(pywikibot.Site(), '2600:1700:5b20:da0:98b2:b6b4:c36e:62bf') page_usertalk = user.getUserTalkPage() print(page_usertalk.isRedirectPage())
List of steps to reproduce (step by step, including full links if applicable):
- Run the above code snippet with a bot setup for English Wikipedia
What happens?: Crash
File "/mnt/nfs/labstore-secondary-tools-project/pywikibot/public_html/core_stable/pywikibot/page/_pages.py", line 768, in isRedirectPage return self.site.page_isredirect(self) File "/mnt/nfs/labstore-secondary-tools-project/pywikibot/public_html/core_stable/pywikibot/site/_apisite.py", line 1318, in page_isredirect self.loadpageinfo(page) File "/mnt/nfs/labstore-secondary-tools-project/pywikibot/public_html/core_stable/pywikibot/site/_apisite.py", line 1228, in loadpageinfo self._update_page(page, query) File "/mnt/nfs/labstore-secondary-tools-project/pywikibot/public_html/core_stable/pywikibot/site/_apisite.py", line 1201, in _update_page raise InconsistentTitleError(page, pageitem['title']) pywikibot.exceptions.InconsistentTitleError: Query on [[en:User talk:2600:1700:5b20:da0:98b2:b6b4:c36e:62bf]] returned data on 'User talk:2600:1700:5B20:DA0:98B2:B6B4:C36E:62BF' CRITICAL: Exiting due to uncaught exception <class 'pywikibot.exceptions.InconsistentTitleError'>
What should have happened instead?: No crash.