diff --git a/personal/combine/merge_and_backfill.py b/personal/combine/merge_and_backfill.py index 4517cb9..e547c2c 100644 --- a/personal/combine/merge_and_backfill.py +++ b/personal/combine/merge_and_backfill.py @@ -101,6 +101,10 @@ def query_pushshift(ids, bearer, object_type, pushshift_token_function): log.warning(f"'Authorization': Bearer {bearer}") bearer = pushshift_token_function(bearer) time.sleep(2) + if response is None: + log.warning(f"4 requests failed with no response") + discord_logging.flush_discord() + sys.exit(1) if response.status_code != 200: log.warning(f"4 requests failed with status code {response.status_code}") discord_logging.flush_discord()