From 5b04b565807929ef7df59b7587ecab799c2df699 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Thu, 4 Apr 2024 18:58:16 +0200 Subject: 🐛 GIS imports: do not stop when no feature is provided MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ishtar_common/models_imports.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'ishtar_common') diff --git a/ishtar_common/models_imports.py b/ishtar_common/models_imports.py index 51d678401..4456cf974 100644 --- a/ishtar_common/models_imports.py +++ b/ishtar_common/models_imports.py @@ -1344,6 +1344,8 @@ def delayed_check(import_pk): def convert_geom(feature, srid): + if not feature: + return feature geo_type = feature["type"] if geo_type in ("LineString", "Polygon"): feature["type"] = "Multi" + geo_type -- cgit v1.2.3