diff --git a/datasources/bsky/search_bsky.py b/datasources/bsky/search_bsky.py index 2670a9543..f0749646c 100644 --- a/datasources/bsky/search_bsky.py +++ b/datasources/bsky/search_bsky.py @@ -378,7 +378,8 @@ def get_items(self, query): # Check if there is a cursor for the next page cursor = response['cursor'] - self.dataset.update_progress(total_posts / (max_posts * num_queries)) + if max_posts != 0: + self.dataset.update_progress(total_posts / (max_posts * num_queries)) if 0 < max_posts <= rank: self.dataset.update_status(