https://bugzilla.wikimedia.org/show_bug.cgi?id=62916
Bug ID: 62916 Summary: addQualifier stopped working: APIError 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: felix@fex-it.de Web browser: --- Mobile Platform: ---
"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.