Missing object

main
Bob Mottram 2020-08-12 09:55:08 +00:00
parent c6ffdb2f83
commit a06755827e
1 changed files with 1 additions and 1 deletions

View File

@ -81,7 +81,7 @@ def announcedByPerson(postJsonObject: {}, nickname: str, domain: str) -> bool:
# not to be confused with shared items # not to be confused with shared items
if not postJsonObject['object'].get('shares'): if not postJsonObject['object'].get('shares'):
return False return False
if not isinstance(postJsonObject['shares'], dict): if not isinstance(postJsonObject['object']['shares'], dict):
return False return False
if not postJsonObject['object']['shares'].get('items'): if not postJsonObject['object']['shares'].get('items'):
return False return False