forked from MapComplete/MapComplete
Don't throw an exception when an invalid wikidata entry is encountered
This commit is contained in:
parent
861b9a3cdd
commit
27f12b1f9d
1 changed files with 1 additions and 1 deletions
|
@ -362,7 +362,7 @@ export default class Wikidata {
|
||||||
const id = Wikidata.ExtractKey(value)
|
const id = Wikidata.ExtractKey(value)
|
||||||
if (id === undefined) {
|
if (id === undefined) {
|
||||||
console.warn("Could not extract a wikidata entry from", value)
|
console.warn("Could not extract a wikidata entry from", value)
|
||||||
throw "Could not extract a wikidata entry from " + value
|
return undefined
|
||||||
}
|
}
|
||||||
|
|
||||||
const url = "https://www.wikidata.org/wiki/Special:EntityData/" + id + ".json";
|
const url = "https://www.wikidata.org/wiki/Special:EntityData/" + id + ".json";
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue