[Pywikipedia-bugs] [Maniphest] [Commented On] T200224: harvest_template: InvalidTitle exception when link is to a section

2018-07-28 Thread gerritbot
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

[Pywikipedia-bugs] [Maniphest] [Commented On] T200224: harvest_template: InvalidTitle exception when link is to a section

2018-07-27 Thread matej_suchanek
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

[Pywikipedia-bugs] [Maniphest] [Commented On] T200224: harvest_template: InvalidTitle exception when link is to a section

2018-07-26 Thread Dalba
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:

[Pywikipedia-bugs] [Maniphest] [Commented On] T200224: harvest_template: InvalidTitle exception when link is to a section

2018-07-24 Thread gerritbot
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

[Pywikipedia-bugs] [Maniphest] [Commented On] T200224: harvest_template: InvalidTitle exception when link is to a section

2018-07-23 Thread Framawiki
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