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

Return empty data frame in V4 API when 0 results #43

Open
rodjacka opened this issue Aug 16, 2019 · 1 comment
Open

Return empty data frame in V4 API when 0 results #43

rodjacka opened this issue Aug 16, 2019 · 1 comment

Comments

@rodjacka
Copy link

The method GoogleAnalyticsQueryV4.execute_query throws an exception when 0 results are returned.

TypeError: 'NoneType' object is not iterable

The expected behaviour would be to return an empty dataframe or a None value

@DeliciousHair
Copy link
Contributor

The fact that that code is still a horrible mess aside, it shouldn't do that. Can you post a full error message (sensitive data censored of course) showing what is breaking? I suspect this is quite a small fix, and a good opportunity to make the method less of a mess.

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