Revision 5bc77346 snf-astakos-app/astakos/im/views/target/shibboleth.py

b/snf-astakos-app/astakos/im/views/target/shibboleth.py
72 72
        pass
73 73

  
74 74
    pending_users = \
75
            PendingThirdPartyUser.objects.filter(third_party_identifier=eppn,
76
                                                 provider='shibboleth')
75
        PendingThirdPartyUser.objects.filter(third_party_identifier=eppn,
76
                                             provider='shibboleth')
77 77

  
78 78
    for pending in pending_users:
79 79
        msg = "Migrating pending user %s eppn (%s -> %s)"
......
153 153
        fullname = '%s %s' % (first_name, last_name)
154 154

  
155 155
        if not any([first_name, last_name]) and \
156
                    settings.SHIBBOLETH_REQUIRE_NAME_INFO:
156
                settings.SHIBBOLETH_REQUIRE_NAME_INFO:
157 157
            raise KeyError(_(astakos_messages.SHIBBOLETH_MISSING_NAME))
158 158

  
159 159
    except KeyError, e:

Also available in: Unified diff