Skip to content

Error when calling wdi_core.WDItemEngine.delete_items #116

@cfellicious

Description

@cfellicious

When calling the "wdi_core.WDItemEngine.delete_items" function on our custom Wikibase(v1.32) the code crashes with the error message:
"for x in requests.get(url=url, params=params, headers=headers).json()['query']['pages'].values()][
KeyError: 'pages'"

I ran this piece of code requests.get(url=url, params=params, headers=headers).json() and got this as the result
{'batchcomplete': '', 'query': {'normalized': [{'from': 'Wikidata:Requests_for_deletions', 'to': 'wikidata:Requests for deletions'}], 'interwiki': [{'title': 'wikidata:Requests for deletions', 'iw': 'wikidata'}]}}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions