Commit 3b73e501 authored by Jonas Waeber's avatar Jonas Waeber

Remove exception from facet build helper.

parent b85ab6cb
Pipeline #17142 failed with stages
in 2 minutes and 10 seconds
......@@ -65,7 +65,8 @@ object FacetBuildHelpers {
fun place(jsonObject: JsonObject): Pair<String?, List<String>> {
if (!jsonObject.containsKey(KEYS.name)) {
throw Exception("Place does not contain a name: ${jsonObject[KEYS.entityId]}.")
log.error("Place does not contain a name: ${jsonObject[KEYS.entityId]}.")
return Pair(null, emptyList())
}
val name = Extract.languageContainer("place", jsonObject[KEYS.name])
.reduce { acc, languageContainer -> acc.merge(languageContainer) }.any()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment