-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Labels
Description
If there is no valid cloud state saved:
%> util/devicelist.py
WARNING:absl:Cloud attribute remotetoken not found in state.
Traceback (most recent call last):
File "util/devicelist.py", line 21, in <module>
main()
File "util/devicelist.py", line 11, in main
devs = hub.devices()
File "/home/artanicus/python-cozify.git/cozify/hub.py", line 40, in devices
_fill_kwargs(kwargs)
File "/home/artanicus/python-cozify.git/cozify/hub.py", line 542, in _fill_kwargs
kwargs['cloud_token'] = cloud.token()
File "/home/artanicus/python-cozify.git/cozify/cloud.py", line 346, in token
return _getAttr('remotetoken')
File "/home/artanicus/python-cozify.git/cozify/cloud.py", line 304, in _getAttr
raise AttributeError
AttributeError
Instead, it should be detected that auth hasn't been done successfully and error on that, not an internal consistency AttributeError.