This repository has been archived by the owner on Dec 14, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 18
'int' object has no attribute 'get' #20
Comments
Hi @Coogie7, I've encountered the same error recently. The trick is to make sure you're querying against a non-empty dictionary. For example, I run this query to get the number of visitor activities in March 2015:
I get 460876. To loop through all results, I need to specify the range from 0 to 460800 with a step of 200 like this:
If I set a larger range, I'll get the attribute error as you describe. Hope this helps! -Viola |
What if I'm querying an object with only 20 records? The offset itsn't needed in this case. I know the API limits a call to 200 records. |
Not sure about that. Do you have the latest version from git installed?
|
Yes |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
When calling the "query" function on an object, I am getting an error on this line:
result = response.get('result')
The error is:
Any idea why this is happening? How to fix it?
I've done online research, but nothing has helped.
The text was updated successfully, but these errors were encountered: