Skip to content

Commit fca906e

Browse files
author
Roland Hedberg
committed
Remove xsi:nil from extension_attributes if there is a value.
1 parent 13d6348 commit fca906e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/saml2/saml.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -246,6 +246,8 @@ def harvest_element_tree(self, tree):
246246
# clear type
247247
#self.clear_type()
248248
self.set_text(tree.text)
249+
if XSI_NIL in self.extension_attributes:
250+
del self.extension_attributes[XSI_NIL]
249251
try:
250252
typ = self.extension_attributes[XSI_TYPE]
251253
_verify_value_type(typ, getattr(self, "text"))

0 commit comments

Comments
 (0)