Skip to content

Commit

Permalink
handle target IDs that are not strings
Browse files Browse the repository at this point in the history
  • Loading branch information
Hjfocs committed Jul 25, 2019
1 parent 73f9288 commit 2b3f34b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions soweego/ingester/wikidata_bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -600,6 +600,9 @@ def _check_for_same_value(


def _parse_value(value):
# It may not be a string
if not isinstance(value, str):
value = str(value)
# Build an item in case of QID
value_is_qid = search(QID_REGEX, value)
if value_is_qid:
Expand Down

0 comments on commit 2b3f34b

Please sign in to comment.