[fix] Unapropriate warning (#173)

* [fix] Unapropriate warning

* Use 'is None'

Co-Authored-By: alexAubin <alex.aubin@mailoo.org>
This commit is contained in:
ljf (zamentur) 2018-10-27 17:58:45 +02:00 committed by Alexandre Aubin
parent c5292624f9
commit 9f7ee73b09

View file

@ -59,6 +59,8 @@ class Authenticator(BaseAuthenticator):
@property @property
def is_authenticated(self): def is_authenticated(self):
if self.con is None:
return False
try: try:
# Retrieve identity # Retrieve identity
who = self.con.whoami_s() who = self.con.whoami_s()