Open LeMyst opened 1 year ago
Another example:
raise ModificationFailed(json_data['error'])
wikibaseintegrator.wbi_exceptions.ModificationFailed: 'Item [[Q116472444|Q116472444]] already has label "Xiao Liu" associated with language code en, using the same description text.'
see
It seems the exception don't give enough informations in some cases.
For my example, I tried to create a new entity (a property) with already used Labels on the same wikibase instance. Wikibase don't allow this and simply return a "The save have failed" with the default MWApiError:
but the error returned by WB is really explicit:
WBI exceptions must be improved to give more informations.