mirror of
https://github.com/GAM-team/GAM.git
synced 2025-07-10 06:33:34 +00:00
The activities API is returning 'netPageToken': '' which causes infinite loop (#659)
This commit is contained in:
@ -780,7 +780,7 @@ def callGAPIpages(service, function, items,
|
||||
sys.stderr.write(u'\r')
|
||||
sys.stderr.flush()
|
||||
sys.stderr.write(show_message)
|
||||
if this_page and u'nextPageToken' in this_page:
|
||||
if this_page and this_page.get(u'nextPageToken'):
|
||||
kwargs[u'pageToken'] = this_page[u'nextPageToken']
|
||||
else:
|
||||
if page_message and (page_message[-1] != u'\n'):
|
||||
|
Reference in New Issue
Block a user