Skip to content

Commit

Permalink
fix resin.auth.is_logged_in
Browse files Browse the repository at this point in the history
  • Loading branch information
benoitguigal committed Mar 22, 2017
1 parent fc235fb commit 9e113c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion resin/auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ def is_logged_in(self):
'/whoami', 'GET', endpoint=self.settings.get('api_endpoint')
)
return True
except exceptions.RequestError:
except (exceptions.RequestError, exceptions.Unauthorized, exceptions.NotLoggedIn):
return False

def get_token(self):
Expand Down

0 comments on commit 9e113c4

Please sign in to comment.