guard against attribute value in unicode
This commit is contained in:
parent
f91a04c2f7
commit
4ac87617fd
|
@ -255,7 +255,7 @@ class RootDirectory(Directory):
|
|||
attribute.nameFormat = 'urn:oasis:names:tc:SAML:2.0:attrname-format:basic'
|
||||
|
||||
attribute_value_list = lasso.NodeList()
|
||||
if type(value) is str:
|
||||
if type(value) in (str, unicode):
|
||||
value = [value]
|
||||
for value_item in value:
|
||||
attribute_value = lasso.Saml2AttributeValue()
|
||||
|
|
Reference in New Issue