-
Notifications
You must be signed in to change notification settings - Fork 195
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[IMPR] Check whether Claim exists within Claim.fromJSON() method
- If a Claim type is not given to the initializer, the type is fetched from wikibase. This can fail if it does not exist. Try to get the type and if NoWikibaseEntityError write a warning instead raising a KeyError - add a new exists() method to Property class - raise NoWikibaseEntityError in Property.type property instead of KeyError Bug: T374681 Change-Id: Id9047cfe688c9a13c9ccc4c4ee1aebe5628abe4c
- Loading branch information
Showing
1 changed file
with
47 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters