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