do not set attributes to None, not supported anymore

http://trac.imio.be/trac/ticket/16552#comment:6
This commit is contained in:
Frédéric Péters 2017-05-26 12:53:33 +02:00
parent f4240b41b0
commit c08a33b560
1 changed files with 1 additions and 1 deletions

View File

@ -106,7 +106,7 @@ class AuthenticAdapter(DefaultAdapter):
for nrn_attribute, user_attribute in attribute_mapping:
try:
Attribute.objects.get(name=user_attribute).set_value(user,
attributes.get(nrn_attribute),
attributes.get(nrn_attribute) or '',
verified=True)
except Attribute.DoesNotExist:
pass