Fix IndexError if we can't get a valid xml from PMS
This commit is contained in:
parent
fc6718f698
commit
d2166cd604
1 changed files with 1 additions and 1 deletions
|
@ -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])
|
||||
|
|
Loading…
Reference in a new issue