From 936ae4d70c86dcdfefdf02442a149ad8ddacdef4 Mon Sep 17 00:00:00 2001 From: Samuel Clay Date: Mon, 27 Jun 2022 21:23:26 -0400 Subject: [PATCH] Need content to read json from --- apps/statistics/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/statistics/models.py b/apps/statistics/models.py index 5255ec126..c921e2940 100644 --- a/apps/statistics/models.py +++ b/apps/statistics/models.py @@ -299,7 +299,7 @@ class MFeedback(mongo.Document): def collect_feedback(cls): seen_posts = set() try: - data = requests.get('https://forum.newsblur.com/posts.json', timeout=3) + data = requests.get('https://forum.newsblur.com/posts.json', timeout=3).content except (urllib.error.HTTPError, requests.exceptions.ConnectTimeout) as e: logging.debug(" ***> Failed to collect feedback: %s" % e) return