Support simple token
@@ -82,7 +82,7 @@ class Client(object):
except (UserException, FileNotFoundError):
pass
else:
- if self._current_profile is not None:
+ if self._current_profile is not None and 'token' in user:
self._current_profile.update({
'token': user['token'],
})
