diff --git a/attributs.py b/attributs.py index 6918b81..6ae6df5 100644 --- a/attributs.py +++ b/attributs.py @@ -454,7 +454,7 @@ class loginShell(Attr): def parse_value(self, shell, ldif): with open('/etc/shells') as f: shells = [ l.strip() for l in f.readlines() if not l.startswith('#') ] - if (shell not in shells) + if (shell not in shells): raise ValueError("Shell %s invalide" % shell) self.value = shell