Result later

merge-requests/30/head
Bob Mottram 2021-02-12 11:47:49 +00:00
parent 43ffcd7302
commit c0c44e9d1a
1 changed files with 1 additions and 1 deletions

View File

@ -513,7 +513,6 @@ def _jsonFeedV1ToDict(baseDir: str, domain: str, xmlStr: str,
"""
if '"items"' not in xmlStr:
return {}
result = {}
try:
feedJson = json.loads(xmlStr)
except BaseException:
@ -528,6 +527,7 @@ def _jsonFeedV1ToDict(baseDir: str, domain: str, xmlStr: str,
return {}
if not isinstance(feedJson['items'], list):
return {}
result = {}
for jsonFeedItem in feedJson['items']:
if not jsonFeedItem:
continue