From e3f25ea630f4910582d73cb36543096f856cd36d Mon Sep 17 00:00:00 2001 From: "ljf (zamentur)" Date: Tue, 9 Oct 2018 09:11:38 +0200 Subject: [PATCH] [fix] Unapropriate warning --- moulinette/authenticators/ldap.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/moulinette/authenticators/ldap.py b/moulinette/authenticators/ldap.py index 53cd0899..5aff7ba4 100644 --- a/moulinette/authenticators/ldap.py +++ b/moulinette/authenticators/ldap.py @@ -59,6 +59,8 @@ class Authenticator(BaseAuthenticator): @property def is_authenticated(self): + if not self.con: + return False try: # Retrieve identity who = self.con.whoami_s()