diff --git a/mama_cas/response.py b/mama_cas/response.py index 456b515..d4d07fe 100644 --- a/mama_cas/response.py +++ b/mama_cas/response.py @@ -233,10 +233,10 @@ def get_attribute_statement(self, subject, attributes): if isinstance(value, list): for v in value: attribute_value = etree.SubElement(attribute, 'AttributeValue') - attribute_value.text = v + attribute_value.text = force_text(v) else: attribute_value = etree.SubElement(attribute, 'AttributeValue') - attribute_value.text = value + attribute_value.text = force_text(value) return attribute_statement def get_authentication_statement(self, subject, ticket):