From 649a4e6691961bedaa96e0eb6e24aed3fd36301d Mon Sep 17 00:00:00 2001 From: Antoine Durand-Gasselin Date: Sun, 17 Oct 2010 16:31:56 +0200 Subject: [PATCH] [attributs] +: --- attributs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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