mirror of https://gitlab.com/bashrc2/epicyon
Check that type exists
parent
d93e780bef
commit
bbb75ff883
2
posts.py
2
posts.py
|
@ -513,6 +513,8 @@ def is_create_inside_announce(item: {}) -> bool:
|
||||||
"""
|
"""
|
||||||
if not isinstance(item, dict):
|
if not isinstance(item, dict):
|
||||||
return False
|
return False
|
||||||
|
if not item.get('type'):
|
||||||
|
return False
|
||||||
if item['type'] != 'Announce':
|
if item['type'] != 'Announce':
|
||||||
return False
|
return False
|
||||||
if not item.get('object'):
|
if not item.get('object'):
|
||||||
|
|
Loading…
Reference in New Issue