Merge branch 'master' of github.com:mjs7231/python-plexapi

This commit is contained in:
Michael Shepanski 2017-01-21 23:07:35 -05:00
commit df59247741

View file

@ -303,7 +303,7 @@ class MyPlexResource(object):
log.info(
'Testing resource connection: %s?X-Plex-Token=%s %s', url, token, okerr)
results = [r[2] for r in results if r and r is not None]
results = [r[2] for r in results if r and r[2] is not None]
if not results:
raise NotFound('Unable to connect to resource: %s' % self.name)
log.info('Connecting to server: %s?X-Plex-Token=%s',