Fix TypeError

This commit is contained in:
tomkat83 2017-04-30 17:07:56 +02:00
parent 6961bf19c7
commit 0909235a63

View file

@ -768,7 +768,7 @@ def channels():
xml = downloadutils.DownloadUtils().downloadUrl('{server}/channels/all')
try:
xml[0].attrib
except (ValueError, AttributeError, IndexError):
except (ValueError, AttributeError, IndexError, TypeError):
log.error('Could not download Plex Channels')
return xbmcplugin.endOfDirectory(HANDLE, False)