Use 'is None'

Co-Authored-By: alexAubin <alex.aubin@mailoo.org>
This commit is contained in:
Bram 2018-10-24 22:44:10 +02:00 committed by GitHub
parent e3f25ea630
commit 72e09e631f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -59,7 +59,7 @@ class Authenticator(BaseAuthenticator):
@property @property
def is_authenticated(self): def is_authenticated(self):
if not self.con: if self.con is None:
return False return False
try: try:
# Retrieve identity # Retrieve identity