Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: 'DevicePaginationResponse' object is not iterable #2

Open
netengmonty opened this issue Aug 20, 2020 · 1 comment
Open

Comments

@netengmonty
Copy link

when running get_device_list, the data returned is in a dictionary format but the data has a custom class that is not iterable.

'''
api_response = dict(api_response)
Traceback (most recent call last):
File "", line 1, in
TypeError: 'DevicePaginationResponse' object is not iterable
'''

@woz5999
Copy link
Contributor

woz5999 commented Aug 20, 2020

i think you want to iterate on either api_response.to_dict() or api_response.items()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants