Last modified: 2014-07-20 10:08:14 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T68466, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 66466 - harvest_template: Claim instance has no attribute 'title'
harvest_template: Claim instance has no attribute 'title'
Status: RESOLVED DUPLICATE of bug 66583
Product: Pywikibot
Classification: Unclassified
Wikidata (Other open bugs)
core-(2.0)
All All
: Unprioritized normal
: ---
Assigned To: Pywikipedia bugs
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-06-11 09:19 UTC by JAn Dudík
Modified: 2014-07-20 10:08 UTC (History)
2 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description JAn Dudík 2014-06-11 09:19:25 UTC
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'
Comment 1 JAn Dudík 2014-06-13 13:06:29 UTC
see aslo https://bugzilla.wikimedia.org/show_bug.cgi?id=66583
Comment 2 Gerrit Notification Bot 2014-06-13 13:32:58 UTC
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
Comment 3 Gerrit Notification Bot 2014-06-14 22:55:36 UTC
Change 139366 merged by jenkins-bot:
(bug 66466) Exception getting edit token for Claim

https://gerrit.wikimedia.org/r/139366
Comment 4 Ricordisamoa 2014-07-20 10:07:25 UTC
Seems that nobody catched this.
Comment 5 Ricordisamoa 2014-07-20 10:08:14 UTC
Dup of bug 66583.

*** This bug has been marked as a duplicate of bug 66583 ***

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links