diff options
author | Lorenz Diener <[email protected]> | 2017-09-05 16:36:32 +0200 |
---|---|---|
committer | Lorenz Diener <[email protected]> | 2017-09-05 16:36:32 +0200 |
commit | 87ee1df1c0e045243a486ff43514028e49f44386 (patch) | |
tree | 9fd8c65ad643bee145f24820d3d32b45185264f5 | |
parent | 613ad895c84b652dd82b7296d73cb7cd70716a04 (diff) | |
download | mastodon.py-87ee1df1c0e045243a486ff43514028e49f44386.tar.gz |
Fix #59
-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 | ||