diff --git a/larpe/trunk/larpe/saml2.ptl b/larpe/trunk/larpe/saml2.ptl index 758ba78..7f1e617 100644 --- a/larpe/trunk/larpe/saml2.ptl +++ b/larpe/trunk/larpe/saml2.ptl @@ -191,7 +191,7 @@ class Saml2(Saml2Directory): return 'Your browser should redirect you' def lookup_user(self, session, login): - found_users = list(User.select(lambda x: login.nameIdentifier.content in x.name_identifiers)) + found_users = list(User.select(lambda x: login.nameIdentifier.content in x.name_identifiers), ignore_errors = True) if found_users: return found_users[0] return None