bumplzz69 / google-api-python-client

Automatically exported from code.google.com/p/google-api-python-client
Other
0 stars 0 forks source link

Buzz sample crashes with less than 2 items in stream #59

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Retrieved the first two activities
Traceback (most recent call last):
  File "buzz.py", line 126, in <module>
    main(sys.argv)
  File "buzz.py", line 113, in main
    activitylist = activities.list_next(activitylist).execute()
AttributeError: 'NoneType' object has no attribute 'execute'

Fix sample to check for None returned from list_next().

Original issue reported on code.google.com by jcgregorio@google.com on 19 Sep 2011 at 5:26

GoogleCodeExporter commented 9 years ago

Original comment by jcgregorio@google.com on 9 Nov 2011 at 8:17