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'
https://bugzilla.wikimedia.org/show_bug.cgi?id=66466
--- Comment #1 from JAn Dudík jan.dudik@gmail.com --- see aslo https://bugzilla.wikimedia.org/show_bug.cgi?id=66583
https://bugzilla.wikimedia.org/show_bug.cgi?id=66466
--- Comment #2 from Gerrit Notification Bot gerritadmin@wikimedia.org --- Change 139366 had a related patch set uploaded by John Vandenberg: (bug 66466) Exception getting edit token for Claim
https://gerrit.wikimedia.org/r/139366
https://bugzilla.wikimedia.org/show_bug.cgi?id=66466
Gerrit Notification Bot gerritadmin@wikimedia.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |PATCH_TO_REVIEW
https://bugzilla.wikimedia.org/show_bug.cgi?id=66466
--- Comment #3 from Gerrit Notification Bot gerritadmin@wikimedia.org --- Change 139366 merged by jenkins-bot: (bug 66466) Exception getting edit token for Claim
https://gerrit.wikimedia.org/r/139366
https://bugzilla.wikimedia.org/show_bug.cgi?id=66466
Ricordisamoa ricordisamoa@openmailbox.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|PATCH_TO_REVIEW |RESOLVED CC| |ricordisamoa@openmailbox.or | |g Resolution|--- |FIXED
--- Comment #4 from Ricordisamoa ricordisamoa@openmailbox.org --- Seems that nobody catched this.
https://bugzilla.wikimedia.org/show_bug.cgi?id=66466
Ricordisamoa ricordisamoa@openmailbox.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Resolution|FIXED |DUPLICATE
--- Comment #5 from Ricordisamoa ricordisamoa@openmailbox.org --- Dup of bug 66583.
*** This bug has been marked as a duplicate of bug 66583 ***
pywikipedia-bugs@lists.wikimedia.org