From 87ee1df1c0e045243a486ff43514028e49f44386 Mon Sep 17 00:00:00 2001 From: Lorenz Diener Date: Tue, 5 Sep 2017 16:36:32 +0200 Subject: Fix #59 --- mastodon/Mastodon.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: all_pages = [] current_page = first_page - while current_page != None: + while current_page != None and len(current_page) > 0: all_pages.extend(current_page) current_page = self.fetch_next(current_page) -- cgit v1.2.3