Last modified: 2014-03-21 09:16:25 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 T64916, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 62916 - addQualifier stopped working: APIError
addQualifier stopped working: APIError
Status: RESOLVED FIXED
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-03-21 08:34 UTC by FelixReimann
Modified: 2014-03-21 09:16 UTC (History)
1 user (show)

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


Attachments

Description FelixReimann 2014-03-21 08:34:22 UTC
"qualifier" is a newly created Claim. "claim" is an existing Claim of an item, which is received with item.claims.

>>> claim.addQualifier(qualifier)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "core/pywikibot/page.py", line 3017, in addQualifier
    data = self.repo.editQualifier(self, qualifier, **kwargs)
  File "core/pywikibot/site.py", line 721, in callee
    return fn(self, *args, **kwargs)
  File "core/pywikibot/site.py", line 3882, in editQualifier
    data = req.submit()
  File "core/pywikibot/data/api.py", line 401, in submit
    raise APIError(code, info, **result["error"])
pywikibot.data.api.APIError: no-such-qualifier: Claim does not have a qualifier with the given hash

The used code worked once.
Comment 1 Gerrit Notification Bot 2014-03-21 09:04:08 UTC
Change 119949 had a related patch set uploaded by FelixReimann:
(bug 62916) Only add hash if it is not None.

https://gerrit.wikimedia.org/r/119949
Comment 2 Gerrit Notification Bot 2014-03-21 09:15:11 UTC
Change 119949 merged by jenkins-bot:
(bug 62916) Only add hash if it is not None.

https://gerrit.wikimedia.org/r/119949

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


Navigation
Links