You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
mastodon.fetch_next called on an empty list of toots leads to:
File "/usr/lib/python3/dist-packages/mastodon/utility.py", line 206, in fetch_next
method = params['_pagination_method']
~~~~~~^^^^^^^^^^^^^^^^^^^^^^
TypeError: list indices must be integers or slices, not str
Steps to reproduce:
toots = mastodon.timeline()
while True:
toots = mastodon.fetch_next(toots)
It seems that fetch_next returns an empty list after 800 toots and breaks the next run. Perhaps the library could provide an iterator that terminates at the end instead?
Thanks!
The text was updated successfully, but these errors were encountered:
Hello and thanks for developing this library.
mastodon.fetch_next
called on an empty list of toots leads to:Steps to reproduce:
It seems that fetch_next returns an empty list after 800 toots and breaks the next run. Perhaps the library could provide an iterator that terminates at the end instead?
Thanks!
The text was updated successfully, but these errors were encountered: