diff options
-rw-r--r-- | mastodon/Mastodon.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mastodon/Mastodon.py b/mastodon/Mastodon.py index 1d71e94..6513c33 100644 --- a/mastodon/Mastodon.py +++ b/mastodon/Mastodon.py | |||
@@ -809,7 +809,7 @@ class Mastodon: | |||
809 | 809 | ||
810 | all_pages = [] | 810 | all_pages = [] |
811 | current_page = first_page | 811 | current_page = first_page |
812 | while current_page != None: | 812 | while current_page != None and len(current_page) > 0: |
813 | all_pages.extend(current_page) | 813 | all_pages.extend(current_page) |
814 | current_page = self.fetch_next(current_page) | 814 | current_page = self.fetch_next(current_page) |
815 | 815 | ||