Check tag type

main
Bob Mottram 2023-09-19 13:34:30 +01:00
parent c6c021de25
commit 5743198b85
1 changed files with 2 additions and 0 deletions

View File

@ -432,6 +432,8 @@ def replace_emoji_from_tags(session, base_dir: str,
"""Uses the tags to replace :emoji: with html image markup
"""
for tag_item in tag:
if not isinstance(tag_item, dict):
continue
if not tag_item.get('type'):
continue
if tag_item['type'] != 'Emoji':