Check that type exists

merge-requests/30/head
Bob Mottram 2023-07-07 09:29:24 +01:00
parent d93e780bef
commit bbb75ff883
1 changed files with 2 additions and 0 deletions

View File

@ -513,6 +513,8 @@ def is_create_inside_announce(item: {}) -> bool:
"""
if not isinstance(item, dict):
return False
if not item.get('type'):
return False
if item['type'] != 'Announce':
return False
if not item.get('object'):