Fix IndexError if we can't get a valid xml from PMS

This commit is contained in:
tomkat83 2017-03-13 20:25:52 +01:00
parent fc6718f698
commit d2166cd604

View file

@ -41,7 +41,7 @@ class Playback_Starter(Thread):
xml = GetPlexMetadata(plex_id)
try:
xml[0].attrib
except (TypeError, AttributeError):
except (IndexError, TypeError, AttributeError):
log.error('Could not get a PMS xml for plex id %s' % plex_id)
return
api = API(xml[0])