From 9de960d0ccccc44afe6bf7bae344447f2a7b0ec1 Mon Sep 17 00:00:00 2001 From: David Marx Date: Mon, 13 Aug 2018 21:14:40 -0700 Subject: [PATCH] Bug fix for issue #30 --- CHANGES.rst | 2 ++ psaw/PushshiftAPI.py | 2 ++ 2 files changed, 4 insertions(+) diff --git a/CHANGES.rst b/CHANGES.rst index f38c000..ed66f50 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -3,6 +3,8 @@ Change Log dev ------------------ +* Add `redditor_subreddit_activity` convenience method + --> Needs demo in README * Fixed bug that blocked backoff on request issued to determine current rate limit when a new psaw instance is created. diff --git a/psaw/PushshiftAPI.py b/psaw/PushshiftAPI.py index f72f11f..7eabfb1 100644 --- a/psaw/PushshiftAPI.py +++ b/psaw/PushshiftAPI.py @@ -276,6 +276,8 @@ class PushshiftAPI(PushshiftAPIMinimal): gen = [self._get_submission_comment_ids(**kwargs)] for batch in gen: + if not batch: + return if using_gsci: fullnames = [prefix + base36id for base36id in batch] else: