jayvdb added a comment.
The problem is broader than just redirects.
If the page exists, but no item exists, the NoPage exception is not helpful -
it just says NoPage('-1')
A large part of the problem is this the 'lazy_load' mechanism, which was
previously the default.
When we are lazy loading, the raw result only says 'missing'. I was hoping for
a resolution to https://phabricator.wikimedia.org/T70251 before building better
error handling. But, we may be waiting a while.
I suspect that it is possible to have a client wiki redirect page that is
linked to a wikibase item. I've seen lots of mailing list discussions about
wikidata linking to redirects.
If it is possible to resolve a redirect page to a wikibase item, then fromPage
should raise NoPage , instead of IsRedirectPage , but the error message should
be informative.
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: jayvdb
Cc: jayvdb, gerritbot, Mineo, Aklapper, pywikipedia-bugs
_______________________________________________
Pywikipedia-bugs mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/pywikipedia-bugs