[fix] Unapropriate warning

This commit is contained in:
ljf (zamentur) 2018-10-09 09:11:38 +02:00 committed by GitHub
parent c5292624f9
commit e3f25ea630
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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