gerritbot added a comment.
Change 447591 merged by jenkins-bot:
[pywikibot/core@master] Correctly handle invalid titles in harvest_template.py
https://gerrit.wikimedia.org/r/447591TASK DETAILhttps://phabricator.wikimedia.org/T200224EMAIL
matej_suchanek added a comment.
Not sure if this method needs to have that documented, the responsible method is Link.parse, which has no documented exception, though.TASK DETAILhttps://phabricator.wikimedia.org/T200224EMAIL
Dalba added a comment.
If this behavior of BasePage.exists is expected, then we should also update its documentation to mention that it may raise InvalidTitle.TASK DETAILhttps://phabricator.wikimedia.org/T200224EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To:
gerritbot added a comment.
Change 447591 had a related patch set uploaded (by Matěj Suchánek; owner: Matěj Suchánek):
[pywikibot/core@master] Correctly handle invalid titles in harvest_template.py
https://gerrit.wikimedia.org/r/447591TASK DETAILhttps://phabricator.wikimedia.org/T200224EMAIL
Framawiki added a comment.
Strangely the necessary try/except is present just above.
def _template_link_target(self, item, link_text):
link = pywikibot.Link(link_text)
try:
linked_page = pywikibot.Page(link)
except pywikibot.exceptions.InvalidTitle:
pywikibot.error('%s