Fix return value of get_recently_added_details when exception

This commit is contained in:
JonnyWong16 2021-09-13 16:05:49 -07:00
commit 8d70c4b9da
No known key found for this signature in database
GPG key ID: B1F1F9807184697A
2 changed files with 3 additions and 3 deletions

View file

@ -513,7 +513,7 @@ class PmsConnect(object):
xml_head = recent.getElementsByTagName('MediaContainer')
except Exception as e:
logger.warn("Tautulli Pmsconnect :: Unable to parse XML for get_recently_added: %s." % e)
return []
return {'recently_added': []}
for a in xml_head:
if a.getAttribute('size'):