Missing object

master
Bob Mottram 2019-09-03 10:48:06 +01:00
parent d95093810e
commit 2f85939c1d
1 changed files with 1 additions and 1 deletions

View File

@ -137,7 +137,7 @@ def updateAnnounceCollection(postFilename: str,actor: str,debug: bool) -> None:
postJsonObject['object']['shares']=announcementsJson postJsonObject['object']['shares']=announcementsJson
else: else:
if postJsonObject['object']['shares'].get('items'): if postJsonObject['object']['shares'].get('items'):
for announceItem in postJsonObject['shares']['items']: for announceItem in postJsonObject['object']['shares']['items']:
if announceItem.get('actor'): if announceItem.get('actor'):
if announceItem['actor']==actor: if announceItem['actor']==actor:
return return