aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThéo de la Hogue2024-01-31 15:11:03 +0100
committerThéo de la Hogue2024-01-31 15:11:03 +0100
commit908ebce9b7437073d4a5ec86c6521b527ab2b904 (patch)
tree39c763f8aa6530b4abf72d8b66fabe8e866cfa44
parent0614bd145b9a8b1ba518c3515c650adc15d06109 (diff)
downloadargaze-908ebce9b7437073d4a5ec86c6521b527ab2b904.zip
argaze-908ebce9b7437073d4a5ec86c6521b527ab2b904.tar.gz
argaze-908ebce9b7437073d4a5ec86c6521b527ab2b904.tar.bz2
argaze-908ebce9b7437073d4a5ec86c6521b527ab2b904.tar.xz
Allowing to delete configuration key thanks to null value in patch.
-rw-r--r--src/argaze/DataFeatures.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/argaze/DataFeatures.py b/src/argaze/DataFeatures.py
index 091b551..6da769d 100644
--- a/src/argaze/DataFeatures.py
+++ b/src/argaze/DataFeatures.py
@@ -551,6 +551,10 @@ class PipelineStepObject():
d[k] = update(d.get(k, {}), v)
+ elif v is None:
+
+ del d[k]
+
else:
d[k] = v