forked from indymedia/epicyon
Check that announce is a dict
parent
4cbaedffba
commit
e663ec0505
3
posts.py
3
posts.py
|
@ -2589,6 +2589,9 @@ def downloadAnnounce(session,baseDir: str,httpPrefix: str,nickname: str,domain:
|
|||
if not announcedJson:
|
||||
return None
|
||||
|
||||
if not isinstance(announcedJson, dict):
|
||||
print('WARN: announce json is not a dict - '+postJsonObject['object'])
|
||||
return None
|
||||
if not announcedJson.get('id'):
|
||||
rejectAnnounce(announceFilename)
|
||||
#pprint(announcedJson)
|
||||
|
|
Loading…
Reference in New Issue