diff --git a/cas_server/models.py b/cas_server/models.py index 3c0635f..2b9631b 100644 --- a/cas_server/models.py +++ b/cas_server/models.py @@ -186,7 +186,7 @@ class ServicePattern(models.Model): raise BadFilter('%s do not match %s %s' % ( filtre.pattern, filtre.attribut, - user.attributs[filtre.attribut] + user.attributs.get(filtre.attribut) )) if self.user_field and not user.attributs.get(self.user_field): raise UserFieldNotDefined()