| Framawiki created this task. Framawiki added projects: Pywikibot-Wikidata, Pywikibot-Other-scripts, Pywikibot-core. Herald added subscribers: pywikibot-bugs-list, Aklapper. |
TASK DESCRIPTION
pywikibot-core$ python pwb.py harvest_template -lang:en -template:Infobox_officeholder -ns:0 spouse P26 -page:"George Hamilton-Gordon, 4th Earl of Aberdeen" Finding redirects... WARNING: HarvestRobot.__init__ set the Bot.site property; this is only needed when the Bot accesses many sites. Retrieving 1 pages from wikipedia:en.
>>> George Hamilton-Gordon, 4th Earl of Aberdeen <<< 0 pages read 0 pages written Execution time: 0 seconds Script terminated by exception: ERROR: InvalidTitle: The link does not contain a page title Traceback (most recent call last): File "pwb.py", line 253, in <module> if not main(): File "pwb.py", line 246, in main run_python_file(filename, [filename] + args, argvu, file_package) File "pwb.py", line 115, in run_python_file main_mod.__dict__) File "./scripts/harvest_template.py", line 390, in <module> main() File "./scripts/harvest_template.py", line 386, in main bot.run() File "pywikibot-core/pywikibot/bot.py", line 1598, in run super(Bot, self).run() File "pywikibot-core/pywikibot/bot.py", line 1505, in run self.treat(page) File "pywikibot-core/pywikibot/bot.py", line 1733, in treat self.treat_page() File "pywikibot-core/pywikibot/bot.py", line 2199, in treat_page self.treat_page_and_item(page, item) File "./scripts/harvest_template.py", line 276, in treat_page_and_item linked_item = self._template_link_target(item, link_text) File "./scripts/harvest_template.py", line 193, in _template_link_target if not linked_page.exists(): File "pywikibot-core/pywikibot/page.py", line 798, in exists return self.pageid > 0 File "pywikibot-core/pywikibot/page.py", line 283, in pageid self.site.loadpageinfo(self) File "pywikibot-core/pywikibot/page.py", line 218, in site return self._link.site File "pywikibot-core/pywikibot/page.py", line 5714, in site self.parse() File "pywikibot-core/pywikibot/page.py", line 5696, in parse raise pywikibot.InvalidTitle("The link does not contain a page " pywikibot.exceptions.InvalidTitle: The link does not contain a page title <class 'pywikibot.exceptions.InvalidTitle'> CRITICAL: Closing network session.
| spouse = {{unbulleted list|{{marriage|[[#Family|Lady Catherine Hamilton]]<br />|28 July 1805|29 February 1812|reason=died}}|{{marriage|Harriet Douglas<br />|8 July 1815|26 August 1833|reason=died}}}}The link [[#Family|Lady Catherine Hamilton]] raises an error in if not linked_page.exists():.
TASK DETAIL
EMAIL PREFERENCES
To: Framawiki
Cc: Aklapper, pywikibot-bugs-list, Framawiki, Tbscho, MayS, Mdupont, JJMC89, Avicennasis, mys_721tx, jayvdb, Ricordisamoa, Dalba, Masti, Alchimista, Rxy
Cc: Aklapper, pywikibot-bugs-list, Framawiki, Tbscho, MayS, Mdupont, JJMC89, Avicennasis, mys_721tx, jayvdb, Ricordisamoa, Dalba, Masti, Alchimista, Rxy
_______________________________________________ pywikibot-bugs mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
