RoySmith created this task.
RoySmith added a project: Pywikibot.
Restricted Application added subscribers: pywikibot-bugs-list, Aklapper.

TASK DESCRIPTION
  The docs for BasePage.get() say:
  
  pywikibot.exceptions.IsRedirectPageError – The page is a redirect. The 
argument of the exception is the title of the page it redirects to.
  
  but that doesn't seem to be what's actually happening:
  
    from pywikibot import Site, Page
    from pywikibot.exceptions import IsRedirectPageError
    
    site = Site("en")
    
    page = Page(site, "Template:shortdescription")
    try:
       print(page.get())
    except IsRedirectPageError as ex:
       print(f"{ex.args=}")
  
  prints
  
    ex.args=(Page('Template:Shortdescription'),)
  
  It's not clear if the docs are wrong or the code is wrong

TASK DETAIL
  https://phabricator.wikimedia.org/T361531

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: RoySmith
Cc: Aklapper, RoySmith, pywikibot-bugs-list, mevo, PotsdamLamb, Jyoo1011, 
JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, Viztor, Wenyi, Tbscho, MayS, 
Mdupont, JJMC89, Dvorapa, Altostratus, Avicennasis, mys_721tx, Xqt, jayvdb, 
Masti, Alchimista
_______________________________________________
pywikibot-bugs mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to