mirror of
https://github.com/YunoHost/moulinette.git
synced 2024-09-03 20:06:31 +02:00
[fix] Unapropriate warning (#173)
* [fix] Unapropriate warning * Use 'is None' Co-Authored-By: alexAubin <alex.aubin@mailoo.org>
This commit is contained in:
parent
c5292624f9
commit
9f7ee73b09
1 changed files with 2 additions and 0 deletions
|
@ -59,6 +59,8 @@ class Authenticator(BaseAuthenticator):
|
|||
|
||||
@property
|
||||
def is_authenticated(self):
|
||||
if self.con is None:
|
||||
return False
|
||||
try:
|
||||
# Retrieve identity
|
||||
who = self.con.whoami_s()
|
||||
|
|
Loading…
Reference in a new issue