Check that location is a string

main
Bob Mottram 2022-05-21 13:08:50 +01:00
parent 94dd07f98f
commit 66c7f3def1
1 changed files with 2 additions and 0 deletions

View File

@ -106,6 +106,8 @@ def _get_location_from_tags(tags: []) -> str:
continue
if not tag_item.get('name'):
continue
if not isinstance(tag_item['name'], str):
continue
return tag_item['name'].replace('\n', ' ')
return None