From 72e09e631f5b84421b97fc23aa723b27b0c61e5e Mon Sep 17 00:00:00 2001 From: Bram Date: Wed, 24 Oct 2018 22:44:10 +0200 Subject: [PATCH] Use 'is None' Co-Authored-By: alexAubin --- moulinette/authenticators/ldap.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/moulinette/authenticators/ldap.py b/moulinette/authenticators/ldap.py index 5aff7ba4..cf04f0c1 100644 --- a/moulinette/authenticators/ldap.py +++ b/moulinette/authenticators/ldap.py @@ -59,7 +59,7 @@ class Authenticator(BaseAuthenticator): @property def is_authenticated(self): - if not self.con: + if self.con is None: return False try: # Retrieve identity