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)
|
xml = GetPlexMetadata(plex_id)
|
||||||
try:
|
try:
|
||||||
xml[0].attrib
|
xml[0].attrib
|
||||||
except (TypeError, AttributeError):
|
except (IndexError, TypeError, AttributeError):
|
||||||
log.error('Could not get a PMS xml for plex id %s' % plex_id)
|
log.error('Could not get a PMS xml for plex id %s' % plex_id)
|
||||||
return
|
return
|
||||||
api = API(xml[0])
|
api = API(xml[0])
|
||||||
|
|
Loading…
Reference in a new issue