We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b727312 commit a00abf5Copy full SHA for a00abf5
src/onelogin/saml2/response.py
@@ -349,9 +349,10 @@ def get_attributes(self):
349
for attr in attribute_node.iterchildren('{%s}AttributeValue' % OneLogin_Saml2_Constants.NSMAP['saml']):
350
# Remove any whitespace (which may be present where attributes are
351
# nested inside NameID children).
352
- text = attr.text.strip()
353
- if text:
354
- values.append(text)
+ if attr.text:
+ text = attr.text.strip()
+ if text:
355
+ values.append(text)
356
357
# Parse any nested NameID children
358
for nameid in attr.iterchildren('{%s}NameID' % OneLogin_Saml2_Constants.NSMAP['saml']):
0 commit comments