From 4e928a4505e3cd2d0494d7e7be3aabccaa0dab4a Mon Sep 17 00:00:00 2001 From: Daniel Mach Date: Thu, 29 Feb 2024 09:26:28 +0100 Subject: [PATCH] Fix processed node check in XmlModel --- osc/util/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/osc/util/models.py b/osc/util/models.py index 7f03bacc..c2ab36c5 100644 --- a/osc/util/models.py +++ b/osc/util/models.py @@ -707,12 +707,12 @@ class XmlModel(BaseModel): continue value = cls.value_from_string(field, node.text) node.text = None + cls._remove_processed_node(root, node) if value is None: if field.is_optional: continue value = "" kwargs[field_name] = value - cls._remove_processed_node(root, node) cls._remove_processed_node(None, root)