https://bugzilla.wikimedia.org/show_bug.cgi?id=66466
Bug ID: 66466 Summary: harvest_template: Claim instance has no attribute 'title' Product: Pywikibot Version: core (2.0) Hardware: All OS: All Status: NEW Severity: normal Priority: Unprioritized Component: Wikidata Assignee: Pywikipedia-bugs@lists.wikimedia.org Reporter: jan.dudik@gmail.com Web browser: --- Mobile Platform: ---
pwb.py harvest_template -namespace:0 -ref:template:Infobox_-_hokejista -template:"Infobox - hokejista" obrázek P18 "místo narození" P19 "místo úmrtí" P20 "město narození" P19
.. Processing [[cs:Antonín Stavjaňa]] A claim for P18 already exists. Skipping Adding P19 --> [[wikidata:Q171018]] ERROR: AttributeError: Claim instance has no attribute 'title' Traceback (most recent call last): File "I:\py\rewrite\scripts\harvest_template.py", line 66, in run self.processPage(page) File "I:\py\rewrite\scripts\harvest_template.py", line 190, in processPage claim.addSource(source, bot=True) File "I:\py\rewrite\pywikibot\page.py", line 3027, in addSource self.addSources([claim], **kwargs) File "I:\py\rewrite\pywikibot\page.py", line 3035, in addSources data = self.repo.editSource(self, claims, new=True, **kwargs) File "I:\py\rewrite\pywikibot\site.py", line 566, in callee return fn(self, *args, **kwargs) File "I:\py\rewrite\pywikibot\site.py", line 3827, in editSource params['token'] = self.token(claim, 'edit') File "I:\py\rewrite\pywikibot\site.py", line 1537, in token titles=page.title(withSection=False), AttributeError: Claim instance has no attribute 'title'