From 21afb808af9caffffd7609fe4d1624dfac97e1cb Mon Sep 17 00:00:00 2001 From: Nyall Dawson Date: Thu, 18 Jul 2024 22:38:40 +1000 Subject: [PATCH] Update python/core/additions/qgsfeature.py Co-authored-by: Even Rouault --- python/core/additions/qgsfeature.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/core/additions/qgsfeature.py b/python/core/additions/qgsfeature.py index bf0100ab01dc..6ba45b476370 100644 --- a/python/core/additions/qgsfeature.py +++ b/python/core/additions/qgsfeature.py @@ -21,7 +21,7 @@ def mapping_feature(feature): geom = feature.geometry() - properties = {k: None if (v is None or isinstance(v, QVariant) and v.isNull()) else v for k, v in feature.attributeMap().items()} + properties = {k: None if (v is None or (isinstance(v, QVariant) and v.isNull())) else v for k, v in feature.attributeMap().items()} return {'type': 'Feature', 'properties': properties, 'geometry': geom.__geo_interface__}