Mineo created this task.
Mineo added a subscriber: Mineo.
Mineo added a project: pywikibot-core.
Restricted Application added subscribers: Aklapper, pywikipedia-bugs.
TASK DESCRIPTION
```
import pywikibot as wp
site = wp.Site("de", "wikipedia")
page = wp.Page(site, "Kitzelbach")
# page.get()
wppage = wp.ItemPage.fromPage(page)
```
Executing this code raises a pywikibot.exceptions.NoPage exception with an error message
of "Page [[wikidata:-1]] doesn't exist." This does not make it clear at all
what the problem is (the article "Kitzelbach" on de.wp is a redirect).
Uncommenting the call to page.get raises a (much more useful) IsRedirectPage exception
with an actually useful error message ("Page [[wikipedia:de:Kitzelbach]] is a
redirect page." It would be great if this exception (or at least the error message)
wouldn't be hidden or if fromPage made it possible to supply get_redirect like
BasePage.get does.
TASK DETAIL
https://phabricator.wikimedia.org/T87345
REPLY HANDLER ACTIONS
Reply to comment or attach files, or !close, !claim, !unsubscribe or !assign
<username>.
EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: Mineo
Cc: pywikipedia-bugs, Mineo, Aklapper, jayvdb