From 169ce16da3e2b010829678967604e5d2122a42df Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Wed, 4 Dec 2019 09:47:35 +0000 Subject: [PATCH] Reject announce if it is not a dict --- posts.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/posts.py b/posts.py index 0428e587..447ed435 100644 --- a/posts.py +++ b/posts.py @@ -2591,10 +2591,10 @@ def downloadAnnounce(session,baseDir: str,httpPrefix: str,nickname: str,domain: if not isinstance(announcedJson, dict): print('WARN: announce json is not a dict - '+postJsonObject['object']) + rejectAnnounce(announceFilename) return None if not announcedJson.get('id'): rejectAnnounce(announceFilename) - #pprint(announcedJson) return None if '/statuses/' not in announcedJson['id']: rejectAnnounce(announceFilename)