From 656f7f948131a5df000f3307cb9cbb7ff5e3a8e1 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Wed, 28 Dec 2022 10:28:15 +0000 Subject: [PATCH] Check that json is returned --- conversation.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/conversation.py b/conversation.py index 4cca4c19d..bfc85d6fe 100644 --- a/conversation.py +++ b/conversation.py @@ -131,6 +131,8 @@ def download_conversation_posts(session, http_prefix: str, base_dir: str, if not post_json: print(post_id + ' returned no json') while post_json: + if not isinstance(post_json, dict): + break if not has_object_dict(post_json): if not post_json.get('attributedTo'): print(str(post_json))