Invert logic

main
Bob Mottram 2021-02-12 12:09:48 +00:00
parent b1c301dcb5
commit 67172c3165
1 changed files with 1 additions and 1 deletions

View File

@ -563,7 +563,7 @@ def _jsonFeedV1ToDict(baseDir: str, domain: str, xmlStr: str,
print('WARN: json feed description is too long')
continue
if jsonFeedItem.get('tags'):
if not isinstance(jsonFeedItem['tags'], list):
if isinstance(jsonFeedItem['tags'], list):
for tagName in jsonFeedItem['tags']:
if not isinstance(tagName, str):
continue