From a464ed9e3fcbb451cb986e5043c4831c6fe43d81 Mon Sep 17 00:00:00 2001 From: mpeltriaux Date: Wed, 19 Jan 2022 17:20:13 +0100 Subject: [PATCH] # Bugfix parcel updating * fixes bug where under certain circumstances the parcel updating would fail --- konova/utils/wfs/spatial.py | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/konova/utils/wfs/spatial.py b/konova/utils/wfs/spatial.py index 34b037c..8a7bf36 100644 --- a/konova/utils/wfs/spatial.py +++ b/konova/utils/wfs/spatial.py @@ -180,12 +180,15 @@ class ParcelWFSFetcher(AbstractWFSFetcher): members = collection.get( "wfs:member", - [], + None, ) - if len(members) > 1: - features += members - else: - features += [members] + if members is not None: + if len(members) > 1: + # extend feature list with found list of new feature members + features += members + else: + # convert single found feature member into list and extent feature list + features += [members] if collection.get("@next", None) is not None: start_index += self.count -- 2.38.5