Fix TypeError for malformed browsing xml

This commit is contained in:
tomkat83 2017-03-13 20:30:33 +01:00
parent d2166cd604
commit ec1bae3c51

View file

@ -857,7 +857,7 @@ def browse_plex(key=None, plex_section_id=None):
containerSize=int(settings('limitindex')))
try:
xml[0].attrib
except (ValueError, AttributeError, IndexError):
except (ValueError, AttributeError, IndexError, TypeError):
log.error('Could not browse to %s' % key)
return xbmcplugin.endOfDirectory(HANDLE, False)