jenkins-bot has submitted this change and it was merged.
Change subject: Fix IsNotRedirectPage exception in Page.getCategoryRedirectTarget() ......................................................................
Fix IsNotRedirectPage exception in Page.getCategoryRedirectTarget()
The page and not the title shall be passed to the exception.
Bug: T87505 Change-Id: If25e3ab177a2aa892410412c15e6963f5999b414 --- M pywikibot/page.py 1 file changed, 1 insertion(+), 1 deletion(-)
Approvals: Russell Blau: Looks good to me, approved jenkins-bot: Verified
diff --git a/pywikibot/page.py b/pywikibot/page.py index a10291f..e311e56 100644 --- a/pywikibot/page.py +++ b/pywikibot/page.py @@ -676,7 +676,7 @@ """ if self.isCategoryRedirect(): return Category(Link(self._catredirect, self.site)) - raise pywikibot.IsNotRedirectPage(self.title()) + raise pywikibot.IsNotRedirectPage(self)
def isEmpty(self): """Return True if the page text has less than 4 characters.
pywikibot-commits@lists.wikimedia.org